Merge pull request #409 from hosiet/master

make Debian systemd service use /etc/default conf.
This commit is contained in:
Max Lv
2015-09-27 15:18:33 +08:00
2 changed files with 9 additions and 3 deletions
+2
View File
@@ -5,6 +5,8 @@
#
# This is a POSIX shell fragment
#
# Note: `START', `GROUP' and `MAXFD' options are not recognized by systemd.
# Please change those settings in the corresponding systemd unit file.
# Enable during startup?
START=yes
+7 -3
View File
@@ -5,7 +5,8 @@
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This file is default for Debian packaging.
# This file is default for Debian packaging. See also
# /etc/default/shadowsocks-libev for environment variables.
[Unit]
Description=Shadowsocks-libev Default Server Service
@@ -13,8 +14,11 @@ After=network.target
[Service]
Type=simple
User=nobody
ExecStart=/usr/bin/ss-server -c /etc/shadowsocks-libev/config.json
EnvironmentFile=/etc/default/shadowsocks-libev
User=root
#Group=$GROUP
#LimitNOFILE=$MAXFD
ExecStart=/usr/bin/ss-server -a $USER -c $CONFFILE $DAEMON_ARGS
[Install]
WantedBy=multi-user.target