[systemd-devel] suggestion: auto reload as the default to help packagers?

Reindl Harald h.reindl at thelounge.net
Fri May 31 12:01:18 UTC 2019



Am 31.05.19 um 12:31 schrieb Michael Chapman:
> It also means that the sysadmin can't prepare a set of interconnected 
> changes and have them applied at once. For instance, you might want a 
> timer unit and its associated service unit to be applied at the same time, 
> rather than have the timer fire before the service has been properly 
> configured.

and at least that don't apply when i say "systemctl restart service" by
hand - frankly - every time when i edit a unit, forget about manual
reload and restart the service i got terrible angry about this braindead
behavior, at least DO NOT RESTART without a force argument in that state!


[root at srv-rhsoft:~]$ systemctl status httpd
● httpd.service - Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled;
vendor preset: disabled)
  Drop-In: /etc/systemd/system/httpd.service.d
           └─lockdown.conf
   Active: active (running) since Wed 2019-05-29 15:26:19 CEST; 1 day
22h ago
 Main PID: 325412 (httpd)
    Tasks: 12 (limit: 1024)
   Memory: 42.5M
   CGroup: /system.slice/httpd.service
           ├─325412 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─896201 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─896258 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─896334 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─896340 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─896395 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─896651 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─896769 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─899113 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─951230 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─951288 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           └─951348 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND


[root at srv-rhsoft:~]$ touch /usr/lib/systemd/system/httpd.service

[root at srv-rhsoft:~]$ systemctl restart httpd
Warning: The unit file, source configuration file or drop-ins of
httpd.service changed on disk. Run 'systemctl daemon-reload' to reload
units.

[root at srv-rhsoft:~]$ systemctl status httpd
● httpd.service - Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled;
vendor preset: disabled)
  Drop-In: /etc/systemd/system/httpd.service.d
           └─lockdown.conf
   Active: active (running) since Fri 2019-05-31 13:59:33 CEST; 2s ago
 Main PID: 954302 (httpd)
    Tasks: 11 (limit: 1024)
   Memory: 27.8M
   CGroup: /system.slice/httpd.service
           ├─954302 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─954303 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─954304 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─954305 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─954306 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─954307 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─954308 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─954309 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─954310 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           ├─954311 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
           └─954312 /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND



More information about the systemd-devel mailing list