Add systemd unit file
This commit is contained in:
parent
21e0317979
commit
73917c0f88
17
adsms.service
Normal file
17
adsms.service
Normal file
|
@ -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
|
|
@ -22,3 +22,7 @@ chmod 640 /etc/adsms.json
|
||||||
cp -f adsms.py /usr/local/bin/adsms
|
cp -f adsms.py /usr/local/bin/adsms
|
||||||
chown root:root /usr/local/bin/adsms
|
chown root:root /usr/local/bin/adsms
|
||||||
chmod 755 /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…
Reference in New Issue
Block a user