summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorDave Hibberd <dave.hibberd@gmail.com>2016-04-01 16:06:32 +0100
committerDave Hibberd <dave.hibberd@gmail.com>2016-04-01 16:06:32 +0100
commit677d2fee44d6f59735b9f08ea539c92bea669bbf (patch)
treed8ab6110b3b9e14b3d51d39391d700e0054c996b /systemd
parent49987ec5691e9a637a692bf63e281701a1a3410b (diff)
parent5752427e73adbb5e6d39f00a24e681c30ba8755d (diff)
Merge tag 'upstream/2.5.1'
Upstream version 2.5.1
Diffstat (limited to 'systemd')
-rw-r--r--systemd/README.systemd14
-rw-r--r--systemd/ax25.system13
-rw-r--r--systemd/uronode.service17
-rw-r--r--systemd/uronode.socket9
-rw-r--r--systemd/uronode@.service15
5 files changed, 68 insertions, 0 deletions
diff --git a/systemd/README.systemd b/systemd/README.systemd
new file mode 100644
index 0000000..6df9ce5
--- /dev/null
+++ b/systemd/README.systemd
@@ -0,0 +1,14 @@
+To get URONode to answer IP socket requests via SystemD do the following:
+
+- copy the SystemD files into /lib/systemd/system
+- run: systemctl enable uronode
+- run: systemctl enable ax25
+- run: chkconfig uronode on
+- run: chkconfig ax25 on
+- run: systemctl daemon-reload
+- in /etc/xinetd.d/uronode (or node) set disable to yes
+ (or comment out your line in /etc/inetd.conf)
+- run: systemctl restart xinetd
+- reboot
+
+
diff --git a/systemd/ax25.system b/systemd/ax25.system
new file mode 100644
index 0000000..c241c10
--- /dev/null
+++ b/systemd/ax25.system
@@ -0,0 +1,13 @@
+[Unit]
+Description=ax25 service
+After=network.target syslog.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/local/bin/ax25 start
+ExecReload=/usr/local/bin/ax25 restart
+ExecStop =/usr/local/bin/ax25 stop
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/systemd/uronode.service b/systemd/uronode.service
new file mode 100644
index 0000000..b380c87
--- /dev/null
+++ b/systemd/uronode.service
@@ -0,0 +1,17 @@
+[Unit]
+Description = URONode Server
+Requires = uronode.socket
+After=syslog.target network.target
+
+[Service]
+Type=oneshot
+ExecStartPre=systemctl start uronode.socket
+ExecStart=/usr/local/sbin/uronode
+ExecStartPost=systemctl restart uronode.socket
+StandardInput=socket
+Sockets=uronode.socket
+
+[Install]
+Also = uronode.socket
+WantedBy = multi-user.target
+WantedBy = network.target
diff --git a/systemd/uronode.socket b/systemd/uronode.socket
new file mode 100644
index 0000000..8654ab4
--- /dev/null
+++ b/systemd/uronode.socket
@@ -0,0 +1,9 @@
+[Unit]
+Description=URONode Server Activation Socket
+
+[Socket]
+ListenStream=0.0.0.0:3694
+Accept=yes
+
+[Install]
+WantedBy=sockets.target
diff --git a/systemd/uronode@.service b/systemd/uronode@.service
new file mode 100644
index 0000000..3207cca
--- /dev/null
+++ b/systemd/uronode@.service
@@ -0,0 +1,15 @@
+[Unit]
+Description = URONode Server
+Requires = uronode.socket
+After=syslog.target network.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/local/sbin/uronode
+StandardInput=socket
+Sockets=uronode.socket
+
+[Install]
+Also = uronode.socket
+WantedBy = multi-user.target
+WantedBy = network.target