Browse Source
Merge pull request #429 from hosiet/master
Merge pull request #429 from hosiet/master
Add service templates and a option to build against system shared libspull/437/head
11 changed files with 205 additions and 22 deletions
Split View
Diff Options
-
4Makefile.am
-
12configure.ac
-
9debian/README.Debian
-
51debian/copyright
-
24debian/libshadowsocks1.symbols
-
7debian/rules
-
23debian/shadowsocks-libev-local@.service
-
23debian/shadowsocks-libev-redir@.service
-
23debian/shadowsocks-libev-server@.service
-
23debian/shadowsocks-libev-tunnel@.service
-
28src/Makefile.am
@ -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.) |
|||
|
|||
|
@ -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 |
|||
|
@ -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 |
|||
|
@ -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 |
|||
|
@ -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 |
|||
|
Write
Preview
Loading…
Cancel
Save