Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initctl #4

Open
totto opened this issue Aug 15, 2014 · 6 comments
Open

initctl #4

totto opened this issue Aug 15, 2014 · 6 comments
Milestone

Comments

@totto
Copy link
Contributor

totto commented Aug 15, 2014

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
Copy link
Contributor

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

@totto
Copy link
Contributor Author

totto commented Jan 8, 2015

The provisioning should handle such situations :)

@totto totto added this to the Next tasks milestone Jan 8, 2015
@StigLau
Copy link
Contributor

StigLau commented Jan 8, 2015

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

@totto
Copy link
Contributor Author

totto commented Jan 8, 2015

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

@StigLau
Copy link
Contributor

StigLau commented Jan 8, 2015

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

@totto
Copy link
Contributor Author

totto commented Jan 8, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants