Files
shadowsocks-rust/debian/shadowsocks-rust.service
mesher2024 ac3dc699c3 debian: fixup debian packaging build scripts (#1722)
* debian: fix up postinst bad substitution

Fix up postinst bad substitution caused by Bash string manipulation in the Dash script.

* debian: update compat file

Fix up the warning caused by compatibility levels before 10 are deprecated.

* debian: replace user nobody in systemd file with dynamicuser

* debian: remove dependency on apg and pwgen in control file

* debian: update shadowsocks-rust-server@.service

Add `DynamicUser=yes` in shadowsocks-rust-server@.service

* debian: update shadowsocks-rust-local@.service

Add `DynamicUser=yes` in shadowsocks-rust-local@.service

---------

Co-authored-by: mesher2024 <mesher2024@users.noreply.github.com>
2024-10-21 10:02:33 +08:00

21 lines
510 B
Desktop File

# This file is part of shadowsocks-rust.
#
# This file is default for Debian packaging. See also
# /etc/default/shadowsocks-rust for environment variables.
[Unit]
Description=Shadowsocks-rust Default Server Service
Documentation=https://github.com/shadowsocks/shadowsocks-rust
After=network.target
[Service]
Type=simple
EnvironmentFile=/etc/default/shadowsocks-rust
DynamicUser=yes
LimitNOFILE=32768
ExecStart=/usr/bin/ssservice server -c ${CONFFILE} ${DAEMON_ARGS}
[Install]
WantedBy=multi-user.target