Browse Source

Merge pull request #409 from hosiet/master

make Debian systemd service use /etc/default conf.
pull/410/head
Max Lv 9 years ago
parent
commit
04c5f9790d
2 changed files with 9 additions and 3 deletions
  1. 2
      debian/shadowsocks-libev.default
  2. 10
      debian/shadowsocks-libev.service

2
debian/shadowsocks-libev.default

@ -5,6 +5,8 @@
# #
# This is a POSIX shell fragment # 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? # Enable during startup?
START=yes START=yes

10
debian/shadowsocks-libev.service

@ -5,7 +5,8 @@
# the Free Software Foundation; either version 3 of the License, or # the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version. # (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] [Unit]
Description=Shadowsocks-libev Default Server Service Description=Shadowsocks-libev Default Server Service
@ -13,8 +14,11 @@ After=network.target
[Service] [Service]
Type=simple 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] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

Loading…
Cancel
Save