mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-27 03:03:43 +00:00
add systemd service templates for debian
Those new templates will be installed by dh_installinit. based on the work of @zh99998 for AUR.
This commit is contained in:
Vendored
+5
-4
@@ -1,15 +1,16 @@
|
||||
shadowsocks-libev for Debian
|
||||
----------------------
|
||||
|
||||
The Debian package has added systemd support. By default, the dpkg installer
|
||||
will enable initscripts if the OS is using sysvinit, and systemd service unit
|
||||
file if the OS is using systemd. This is done automatically.
|
||||
The Debian package has added systemd support. A default server service which
|
||||
reads the default configuration in /etc/default/shadowsocks-libev is installed
|
||||
and enabled by default, plus some other service templates placed in
|
||||
/lib/systemd/system, which can be used by users later.
|
||||
|
||||
Another problem is that shadowsocks-libev is licensed under GPLv3+. This will
|
||||
conflict with OpenSSL License when linked against OpenSSL library. As a
|
||||
result, this package faces licensing problem. Use it at your own risk.
|
||||
|
||||
-- Boyuan Yang <073plan@gmail.com> Fri, 11 Sep 2015 19:08:30 +0800
|
||||
-- Boyuan Yang <073plan@gmail.com> Wed, 14 Oct 2015 09:18:50 +0800
|
||||
|
||||
(No special notes.)
|
||||
|
||||
|
||||
Vendored
+7
@@ -27,5 +27,12 @@ override_dh_auto_configure:
|
||||
dh_auto_configure -- \
|
||||
--enable-shared
|
||||
|
||||
override_dh_installinit:
|
||||
dh_installinit
|
||||
dh_installinit --no-start --name=shadowsocks-libev-server@
|
||||
dh_installinit --no-start --name=shadowsocks-libev-tunnel@
|
||||
dh_installinit --no-start --name=shadowsocks-libev-redir@
|
||||
dh_installinit --no-start --name=shadowsocks-libev-local@
|
||||
|
||||
%:
|
||||
dh $@ --with systemd
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
# This file is part of shadowsocks-libev.
|
||||
#
|
||||
# Shadowsocks-libev is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This is a template unit file. Users may copy and rename the file into
|
||||
# config directories to make new service instances. See systemd.unit(5)
|
||||
# for details.
|
||||
|
||||
[Unit]
|
||||
Description=Shadowsocks-Libev Custom Client Service for %I
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
ExecStart=/usr/bin/ss-local -c /etc/shadowsocks-libev/%i.json
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
# This file is part of shadowsocks-libev.
|
||||
#
|
||||
# Shadowsocks-libev is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This is a template unit file. Users may copy and rename the file into
|
||||
# config directories to make new service instances. See systemd.unit(5)
|
||||
# for details.
|
||||
|
||||
[Unit]
|
||||
Description=Shadowsocks-Libev Custom Client Service Redir Mode for %I
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
ExecStart=/usr/bin/ss-redir -c /etc/shadowsocks-libev/%i.json
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
# This file is part of shadowsocks-libev.
|
||||
#
|
||||
# Shadowsocks-libev is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This is a template unit file. Users may copy and rename the file into
|
||||
# config directories to make new service instances. See systemd.unit(5)
|
||||
# for details.
|
||||
|
||||
[Unit]
|
||||
Description=Shadowsocks-Libev Custom Server Service for %I
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
ExecStart=/usr/bin/ss-server -c /etc/shadowsocks-libev/%i.json
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
# This file is part of shadowsocks-libev.
|
||||
#
|
||||
# Shadowsocks-libev is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This is a template unit file. Users may copy and rename the file into
|
||||
# config directories to make new service instances. See systemd.unit(5)
|
||||
# for details.
|
||||
|
||||
[Unit]
|
||||
Description=Shadowsocks-Libev Custom Client Service Tunnel Mode for %I
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
ExecStart=/usr/bin/ss-tunnel -c /etc/shadowsocks-libev/%i.json
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user