Skip to content

Instantly share code, notes, and snippets.

@martianyi
Last active April 16, 2018 02:29
Show Gist options
  • Save martianyi/e7d14caa128ba91211428548dd960770 to your computer and use it in GitHub Desktop.
Save martianyi/e7d14caa128ba91211428548dd960770 to your computer and use it in GitHub Desktop.
Simple way to run and stop a daemon in Linux

start a daemon

nohup COMMAND >/dev/null 2>&1 &

stop a daemon

ps -ef | grep COMMAND or ps aux | grep COMMAND

kill pid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment