Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #170805
| From | Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: invoke-rc.d & systemd |
| Date | 2016-08-07 16:00 +0200 |
| Message-ID | <s3wMp-4w1-7@gated-at.bofh.it> (permalink) |
| References | <s3vGF-3OS-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Andre Majorel writes: > I'm working on a program to make changes to a daemon's > configuration file. The man page helpfully warns against doing > that without immediately restarting it. > > Do you think the following would work on any Debian system, > regardless of its current run level and choice of init system ? > > 1. run invoke-rc.d daemon-package stop > 2. update config file > 3. run invoke-rc.d daemon-package start That might behave different than expected when current state of the daemon and the boot configuration differ: for example the sequence above will start the daemon if it was not running before but is configured to start at boot; or it will stop the daemon if it was manually started but is not configured to start automatically at boot. systemctl has a `try-restart` option that might be helpful in such cases, but this is optional for LSB init scripts (yay...). `reload` would also work if supported. Ansgar
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
invoke-rc.d & systemd Andre Majorel <aym-naibed@teaser.fr> - 2016-08-07 14:50 +0200
Re: invoke-rc.d & systemd Henrique de Moraes Holschuh <hmh@debian.org> - 2016-08-07 15:40 +0200
Re: invoke-rc.d & systemd Andre Majorel <aym-naibed@teaser.fr> - 2016-08-07 16:20 +0200
Re: invoke-rc.d & systemd Henrique de Moraes Holschuh <hmh@debian.org> - 2016-08-07 17:00 +0200
Re: invoke-rc.d & systemd Jonathan Dowland <jmtd@debian.org> - 2016-08-08 11:30 +0200
Re: invoke-rc.d & systemd Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> - 2016-08-07 16:00 +0200
Re: invoke-rc.d & systemd Henrique de Moraes Holschuh <hmh@debian.org> - 2016-08-07 17:10 +0200
Re: invoke-rc.d & systemd Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> - 2016-08-08 10:10 +0200
Re: invoke-rc.d Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com> - 2016-08-08 11:00 +0200
csiph-web