Skip to content

Commit

Permalink
systemctl location is now derived from --bindir= configure option
Browse files Browse the repository at this point in the history
  • Loading branch information
a-detiste committed Nov 17, 2014
1 parent 716ccdf commit 4225195
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile.in
Expand Up @@ -51,6 +51,7 @@ define in2out
-e "s|\@package\@|$(package)|g" \
-e "s|\@confdir\@|$(confdir)|g" \
-e "s|\@statedir\@|$(statedir)|g" \
-e "s|\@bindir\@|$(bindir)|g" \
-e "s|\@libdir\@|$(libdir)|g" \
-e "s|\@unitdir\@|$(unitdir)|g" \
-e "s|\@runparts\@|$(runparts)|g" \
Expand Down
2 changes: 1 addition & 1 deletion src/bin/systemd-crontab-generator
Expand Up @@ -491,7 +491,7 @@ if __name__ == '__main__':

f.write('\n[Service]\n')
f.write('Type=oneshot\n')
f.write('ExecStart=/bin/sh -c "/bin/systemctl daemon-reload ; /bin/systemctl try-restart cron.target"\n')
f.write('ExecStart=/bin/sh -c "@bindir@/systemctl daemon-reload ; @bindir@/systemctl try-restart cron.target"\n')

MULTIUSER_DIR = os.path.join(TARGET_DIR, 'multi-user.target.wants')

Expand Down
2 changes: 1 addition & 1 deletion src/units/cron-update.service.in
Expand Up @@ -5,4 +5,4 @@ Documentation=man:systemd.cron(7)
[Service]
Type=oneshot
ExecStartPre=/usr/bin/touch /run/crond.reboot
ExecStart=/bin/sh -c '/bin/systemctl daemon-reload ; sleep 1 ; /bin/systemctl restart cron.target'
ExecStart=/bin/sh -c '@bindir@/systemctl daemon-reload ; sleep 1 ; @bindir@/systemctl restart cron.target'

0 comments on commit 4225195

Please sign in to comment.