From 96256a3636b54e8d071a3a0b14c22fba1f15ad0e Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Tue, 9 May 2023 11:39:24 -0700 Subject: [PATCH] Re-add unit file --- adsms.service | 17 +++++++++++++++++ meson.build | 1 + 2 files changed, 18 insertions(+) create mode 100644 adsms.service diff --git a/adsms.service b/adsms.service new file mode 100644 index 0000000..006f07f --- /dev/null +++ b/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 diff --git a/meson.build b/meson.build index 615d36f..da5dd24 100644 --- a/meson.build +++ b/meson.build @@ -8,3 +8,4 @@ py.install_sources( ) install_data('run_adsms.py', install_dir: get_option('bindir'), rename: 'adsms') +install_data('adsms.service', install_dir: 'lib/systemd/system')