Skip to content

Instantly share code, notes, and snippets.

@jccode
Forked from churehill/sss.conf
Last active October 6, 2017 15:45
Show Gist options
  • Save jccode/4444af90d8ce61ab828474ec2aa103d6 to your computer and use it in GitHub Desktop.
Save jccode/4444af90d8ce61ab828474ec2aa103d6 to your computer and use it in GitHub Desktop.
Shadowsocks Upstart Example Script
# Ubuntu upstart file at /etc/init/sss.conf
description "Shadowsocks Server"
author "tpircsboy"
start on runlevel [2345]
stop on shutdown
respawn
respawn limit 10 5
# Essentially lets upstart know the process will detach itself to the background
# expect daemon # fork
# setuid ssuser
# setgid ssuser
exec /usr/local/bin/ssserver -c /etc/shadowsocks.json >/var/log/ssserver.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment