diff options
Diffstat (limited to 'systemd')
| -rw-r--r-- | systemd/README.systemd | 14 | ||||
| -rw-r--r-- | systemd/ax25.system | 13 | ||||
| -rw-r--r-- | systemd/uronode.service | 17 | ||||
| -rw-r--r-- | systemd/uronode.socket | 9 | ||||
| -rw-r--r-- | systemd/uronode@.service | 15 |
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 |
