summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorTimo Wischer <twischer@de.adit-jv.com>2018-02-28 11:38:56 +0100
committerFilipe Coelho <falktx@falktx.com>2018-08-08 21:03:49 +0200
commit9fe6486c6e289c24d4d7d264ef49ff3fa64eeb7d (patch)
tree3a327e64a3afb69bcf4e385c58cbdc3c047e87eb /wscript
parent67e4b4368e73616a6e0aa020925ead75cd57221e (diff)
downloadjack2-9fe6486c6e289c24d4d7d264ef49ff3fa64eeb7d.tar.gz
jackdmp: Signal to systemd when ready
With this patch it is possibly to start the JACK daemon with a systemd service file of type notify. The following provides an example service file: [Service] Type=notify ExecStart=/usr/bin/jackd -d alsa [Install] WantedBy=multi-user.target Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript b/wscript
index fc650de4..70462cc8 100644
--- a/wscript
+++ b/wscript
@@ -439,6 +439,9 @@ def options(opt):
readline = add_auto_option(opt, 'readline', help='Build with readline')
readline.add_library('readline')
readline.set_check_hook(check_for_readline, check_for_readline_error)
+ sd = add_auto_option(opt, 'systemd', help='Use systemd notify')
+ sd.add_header('systemd/sd-daemon.h')
+ sd.add_library('systemd')
# dbus options
opt.recurse('dbus')
@@ -728,7 +731,7 @@ def build_jackd(bld):
includes = ['.', 'common', 'common/jack'],
target = 'jackd',
source = ['common/Jackdmp.cpp'],
- use = ['serverlib']
+ use = ['serverlib', 'SYSTEMD']
)
if bld.env['BUILD_JACKDBUS']: