Re-add unit file

This commit is contained in:
Samuel Sloniker 2023-05-09 11:39:24 -07:00
parent 11cafd2116
commit 96256a3636
2 changed files with 18 additions and 0 deletions

17
adsms.service Normal file
View 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

View File

@ -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')