Skip to content

Commit

Permalink
s6rc-generator: add dependency on dbus
Browse files Browse the repository at this point in the history
  • Loading branch information
st3r4g committed Mar 21, 2021
1 parent 45348cc commit 43a9a31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/s6rc-generator
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
# /usr/share/dbus-1/system-services/* (for the system bus)
# or /usr/share/dbus-1/services/* (for the session bus)

mkdir 'dbus'
# The name of the dbus service which launches controller/broker
# all dbus activated services depend on it
DBUS_S6RC_SERVICE=dbus

mkdir -p 'dbus'
cd 'dbus'

for service in "$@"; do
Expand All @@ -16,6 +20,7 @@ for service in "$@"; do
mkdir "$name_/data"
echo "$name_" >> "$name_/data/dbus-activatable-name"
echo 'longrun' >> "$name_/type"
echo "$DBUS_S6RC_SERVICE" >> "$name_/dependencies"
echo '#!/bin/execlineb -P' >> "$name_/run"
echo "$exec_" >> "$name_/run"
chmod +x "$name_/run"
Expand Down

0 comments on commit 43a9a31

Please sign in to comment.