Created
September 16, 2016 23:20
-
-
Save nathanielks/379e1a1e4df130516b7d21204ec17c5c to your computer and use it in GitHub Desktop.
Revisions
-
nathanielks created this gist
Sep 16, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ # /etc/init/personal-vnc.conf # Use the service command: # sudo service personal-vnc {start,stop,restart,status} # description "Manages VNC connection. Runs on boot" start on runlevel [2345] stop on runlevel [06] setuid YOUR_USER_HERE setgid YOUR_GROUP_HERE respawn respawn limit 3 30 # normal exit codes, it just respawns. normal exit 0 TERM script exec /bin/bash /path/to/script.sh end script