Browse Source

Add systemd unit file

main
Samuel Sloniker 1 year ago
parent
commit
73917c0f88
  1. 17
      adsms.service
  2. 4
      installer.sh

17
adsms.service

@ -0,0 +1,17 @@
# Systemd unit file for the adsms service
# Generated by ChatGPT
[Unit]
Description=Send SMS notifications based on ADS-B data
After=network.target
Requires=tar1090.service
After=tar1090.service
[Service]
User=adsms
Group=adsms
ExecStart=/usr/local/bin/adsms /etc/adsms.json
Restart=always
[Install]
WantedBy=multi-user.target

4
installer.sh

@ -22,3 +22,7 @@ chmod 640 /etc/adsms.json
cp -f adsms.py /usr/local/bin/adsms
chown root:root /usr/local/bin/adsms
chmod 755 /usr/local/bin/adsms
cp adsms.service /etc/systemd/system/
chown root:root /etc/systemd/system/adsms.service
chmod 644 /etc/systemd/system/adsms.service

Loading…
Cancel
Save