mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-25 10:13:44 +00:00
Merge pull request #409 from hosiet/master
make Debian systemd service use /etc/default conf.
This commit is contained in:
Vendored
+2
@@ -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
|
||||
|
||||
Vendored
+7
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user