Re-add unit file
This commit is contained in:
parent
11cafd2116
commit
96256a3636
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
|
|
@ -8,3 +8,4 @@ py.install_sources(
|
||||||
)
|
)
|
||||||
|
|
||||||
install_data('run_adsms.py', install_dir: get_option('bindir'), rename: 'adsms')
|
install_data('run_adsms.py', install_dir: get_option('bindir'), rename: 'adsms')
|
||||||
|
install_data('adsms.service', install_dir: 'lib/systemd/system')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user