Skip to content

Instantly share code, notes, and snippets.

@blikenoother
Created March 31, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blikenoother/d417c09dbd1a6c8ef933 to your computer and use it in GitHub Desktop.
Save blikenoother/d417c09dbd1a6c8ef933 to your computer and use it in GitHub Desktop.
# create file /etc/init/zpanelcp.conf
description "ZPanelCP by Infoglans"
author "Infoglans"
start on filesystem and started docker
stop on runlevel [!2345]
respawn
script
/usr/bin/docker start -a zpanelcp
end script
post-stop script
/usr/bin/docker stop -t 2 zpanelcp
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment