環境
- 環境は RHEL 8.6(AMI ID: ami-064d2a8f528240c59)
$ cat /etc/system-release
Red Hat Enterprise Linux release 8.6 (Ootpa)
$ uname -a
Linux ip-172-17-3-155.ap-northeast-1.compute.internal 4.18.0-372.9.1.el8.x86_64
$ sudo yum install -y https://s3.amazonaws.com/streaming-data-agent/aws-kinesis-agent-latest.amzn2.noarch.rpm
$ sudo service aws-kinesis-agent start
Starting aws-kinesis-agent (via systemctl): [ OK ]
$ sudo service aws-kinesis-agent status
● aws-kinesis-agent.service - LSB: Daemon for Amazon Kinesis Agent.
Loaded: loaded (/etc/rc.d/init.d/aws-kinesis-agent; generated)
Active: active (running) since Thu 2023-07-13 06:01:04 UTC; 2s ago
Docs: man:systemd-sysv-generator(8)
Process: 11120 ExecStart=/etc/rc.d/init.d/aws-kinesis-agent start (code=exited, status=0/SUCCESS)
Tasks: 21 (limit: 47900)
Memory: 86.8M
CGroup: /system.slice/aws-kinesis-agent.service
├─11128 runuser aws-kinesis-agent-user -s /bin/sh -c /usr/bin/start-aws-kinesis-agent
└─11130 /bin/java -server -Xms32m -Xmx512m -Dlog4j.configurationFile=file:///etc/aws-kinesis/log4j.xml -XX:OnOutOfMemoryError="/bin/kill -9 %p" -cp /usr/share/aws-kinesis-agent/lib:/usr/s>
Jul 13 06:01:02 ip-172-17-3-155.ap-northeast-1.compute.internal systemd[1]: Starting LSB: Daemon for Amazon Kinesis Agent....
Jul 13 06:01:02 ip-172-17-3-155.ap-northeast-1.compute.internal runuser[11128]: pam_unix(runuser:session): session opened for user aws-kinesis-agent-user by (uid=0)
Jul 13 06:01:04 ip-172-17-3-155.ap-northeast-1.compute.internal aws-kinesis-agent[11127]: [34B blob data]
Jul 13 06:01:04 ip-172-17-3-155.ap-northeast-1.compute.internal systemd[1]: Started LSB: Daemon for Amazon Kinesis Agent..
$ sudo service aws-kinesis-agent stop
Stopping aws-kinesis-agent (via systemctl): [ OK ]
$ sudo less /var/log/messages
Jul 13 05:54:39 ip-172-17-3-155 systemd[1]: Starting LSB: Daemon for Amazon Kinesis Agent....
Jul 13 05:54:41 ip-172-17-3-155 aws-kinesis-agent[10867]: [ OK ]#015aws-kinesis-agent startup
Jul 13 05:54:41 ip-172-17-3-155 systemd[1]: Started LSB: Daemon for Amazon Kinesis Agent..
Jul 13 05:54:49 ip-172-17-3-155 systemd[1]: Stopping LSB: Daemon for Amazon Kinesis Agent....
Jul 13 05:54:50 ip-172-17-3-155 aws-kinesis-agent[10952]: [ OK ]#015aws-kinesis-agent shutdown
Jul 13 05:54:50 ip-172-17-3-155 systemd[1]: aws-kinesis-agent.service: Succeeded.
Jul 13 05:54:50 ip-172-17-3-155 systemd[1]: Stopped LSB: Daemon for Amazon Kinesis Agent..