altran / _Whydah-Provisioning

Whydah Provisioning Example
Apache License 2.0
0 stars 3 forks source link

initctl #4

Open totto opened 10 years ago

totto commented 10 years ago

initctl restart UserIdentityBackend initctl: Rejected send message, 1 matched rules; type="method_call", sender=":1.4" (uid=501 pid=29969 comm="initctl restart UserIdentityBackend ") interface="com.ubuntu.Upstart0_6.Job" member="Restart" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init ")

maurtvedt commented 10 years ago

Apparently only appears if you do not run it as root. Should probably run it as the service user?

totto commented 9 years ago

The provisioning should handle such situations :)

StigLau commented 9 years ago

Doesn't this happen because the app was started manually by someone not using the restart script on the ec2-user?

totto commented 9 years ago

It probably happens because it find wrong PID or PID/user combinantion

StigLau commented 9 years ago

correct. Initctl can't control UserIdentityBackend if it didn't start it and has the PID

totto commented 9 years ago

pids=$(pgrep ) will get you the pids of all processes with the given name. To kill them all, use

kill -9 $pids To refrain from using a variable and directly kill all processes with a given name issue

pkill -9