diff options
| author | Michael Neves | 2013-06-20 13:57:14 +0200 |
|---|---|---|
| committer | Michael Neves | 2013-06-20 13:57:14 +0200 |
| commit | cbc9a3a486bd77062a105ab457d323f65f370d1d (patch) | |
| tree | e7af291c2563c266d2044262b0f58f1d10897a98 /remote/modules/redsocks/data/etc/systemd/system | |
| parent | [udhcpc] remove old IP adress if new one is obtained. Update hostname if obta... (diff) | |
| parent | [rootfs-stage32] fixes (diff) | |
| download | tm-scripts-cbc9a3a486bd77062a105ab457d323f65f370d1d.tar.gz tm-scripts-cbc9a3a486bd77062a105ab457d323f65f370d1d.tar.xz tm-scripts-cbc9a3a486bd77062a105ab457d323f65f370d1d.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/redsocks/data/etc/systemd/system')
3 files changed, 19 insertions, 0 deletions
diff --git a/remote/modules/redsocks/data/etc/systemd/system/basic.target.wants/setup_proxy.service b/remote/modules/redsocks/data/etc/systemd/system/basic.target.wants/setup_proxy.service new file mode 120000 index 00000000..0c7dc84b --- /dev/null +++ b/remote/modules/redsocks/data/etc/systemd/system/basic.target.wants/setup_proxy.service @@ -0,0 +1 @@ +../setup_proxy.service
\ No newline at end of file diff --git a/remote/modules/redsocks/data/etc/systemd/system/redsocks.service b/remote/modules/redsocks/data/etc/systemd/system/redsocks.service new file mode 100644 index 00000000..4b30d09e --- /dev/null +++ b/remote/modules/redsocks/data/etc/systemd/system/redsocks.service @@ -0,0 +1,9 @@ +[Unit] +Description=Transparent redirector of any TCP connection to proxy using your firewall + +[Service] +Type=forking +PIDFile=/run/redsocks.pid +ExecStart=/sbin/redsocks -c /etc/redsocks.conf -p /run/redsocks.pid +ExecStopPost=/bin/rm /run/redsocks.pid +Restart=on-abort diff --git a/remote/modules/redsocks/data/etc/systemd/system/setup_proxy.service b/remote/modules/redsocks/data/etc/systemd/system/setup_proxy.service new file mode 100644 index 00000000..885e72dc --- /dev/null +++ b/remote/modules/redsocks/data/etc/systemd/system/setup_proxy.service @@ -0,0 +1,9 @@ +[Unit] +Description=Proxy setup detection +Before=sysinit.target shutdown.target +DefaultDependencies=no + +[Service] +Type=oneshot +ExecStart=/opt/openslx/bin/setup_proxy +RemainAfterExit=yes |
