Commit d7477d27 authored by Roman Alifanov's avatar Roman Alifanov

init systemd service

parent 3eb64bff
......@@ -51,4 +51,8 @@ install_data('ru.ximperlinux.TuneIt.Daemon.conf',
install_dir: get_option('sysconfdir') / 'dbus-1' / 'system.d'
)
install_data('tuneit-daemon.service',
install_dir: get_option('systemd_unitdir')
)
subdir('icons')
[Unit]
Description=TuneIt Daemon Service
After=network.target dbus.service
[Service]
Type=simple
User=root
ExecStart=tuneit-daemon
Restart=always
RestartSec=5
Environment=PYTHONUNBUFFERED=1
[Install]
WantedBy=multi-user.target
option('systemd_unitdir', type: 'string', value: '/usr/lib/systemd/system', description: 'Path to systemd unit directory')
\ No newline at end of file
......@@ -55,6 +55,7 @@ where each setting is defined in separate files for flexibility and extensibilit
%_sbindir/tuneit-daemon
%_unitdir/tuneit-daemon.service
%_datadir/polkit-1/actions/*ximper*.policy
%_sysconfdir/dbus-1/system.d/*ximper*.conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment