systemd scripts for xlxd

pull/185/head
Jason D. McCormick 5 years ago
parent 73516e9f14
commit 3ebcc561cd

@ -3,6 +3,12 @@
*copy ambed.service to /etc/systemd/system/ *copy ambed.service to /etc/systemd/system/
*copy watchdog to /ambed/ *copy watchdog to /ambed/
************************************************* *************************************************
* If you want to use systemd for xlxd:
* copy xlxd.service to /etc/systemd/system
* copy xlxd.default to /etc/default/xlxd
* edit /etc/default/xlxd to suit the local install
* systemctl daemon-reload
*************************************************
* xlxd executable must be in /xlxd/ folder * xlxd executable must be in /xlxd/ folder
* ambed executable must be in /ambed/ folder * ambed executable must be in /ambed/ folder
************************************************* *************************************************

@ -0,0 +1,10 @@
# This is used by xlxd.service. Note this is shellcode sourced by xlxd.service
# Enter XLX name/number here
REFLECTOR="XLXnnn"
# Enter IP for binding here
BIND_IP="0.0.0.0"
# Change this is ambed is running on a different host
AMBED_IP="127.0.0.1"

@ -0,0 +1,16 @@
[Unit]
Description=XLXD Multiprotocol Reflector
After=network.target ambed.service
[Service]
Type=forking
User=root
Group=root
EnvironmentFile=/etc/default/xlxd
ExecStart=/xlxd/xlxd ${REFLECTOR} ${BIND_IP} ${AMBED_IP}
ExecStartPost=/bin/sh -c 'umask 022; pgrep xlxd > /var/log/xlxd.pid'
Restart=on-abnormal
PIDFile=/var/log/xlxd.pid
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save

Powered by TurnKey Linux.