It changes the location of daemon starting logic, putting it into C code, instead of a shell script. What problem domain does that solve?
You can always put "/etc/init.d/myservice start" as command. In fact on fedora with systemd-sysv (which is sysv compatibility), this is exactly how it works on old school commands and services
Assume /etc/init.d/myservice is just ordinary shell based service as it was in 90s
service myservice start will output following "Redirecting to /bin/systemctl start myservice.service". And since systemd respects sessions, even if you run that command as ordinary user, gnome-shell will prompt for administrator password with its dialog
chkconfig myservice on will produce /run/systemd/generator.late/myservice.service files (it produces one for each target) where you can modify not only generated variables, but also all others. Like you can set up cpu throtling, respawn on fail (which also works on spawned executables since they will be part of same cgroup)... As for how file is generated in order to show how bs your argument is.
And same goes for every command if distro implemented it correctly and note that auto generated unit will have these set up
ExecStart=/etc/init.d/myservice start
ExecStop=/etc/init.d/myservice stop
ExecReload=/etc/init.d/myservice reload
It dynamically loads services on an as needed basis. Services are only installed on servers as needed anyways, and they need to be available once you see a login prompt. What problem domain does this solve?
Meanwhile... you should really consider to stop spewing bs. It does not dynamically load services per need. Well, not unless you tell it should.
It handles dynamically added hardware. I don't change the hardware on my machines, unless it dies. Then, I have to reboot anyways (To pull the device). What problem does this solve?
The one problem which you seem you can't wrap your head around. It is not server specific, it also runs on user desktops where something like plugging USB device is more than common.
And even on servers you have things like small pluggable USB display+keyboard devices. On one hand you could say "Why? When I have ssh?", then you should realize that your network might be inaccessible and this is exact problem you want to solve and you can't do that over network.
It generates 15 character network device names, which are barely legible. Because eth0, eth1, bond0, bond1 are "too hard". What problem does this solve?
Replaces all service management tools, because the service command was bad, or something.
Refer to first point I made. This is either bogus or distro you use has incomplete systemd implementation.
Removes the ability to add additional verbs to services. Because graceful as a service verb is something, something, bad.
There really was no point in those anyway. At least I have yet to find it in 20 years. It is much better if they were in their own script originally as there is nothing as unfriendly as some verb that only exists in one service
It adds a whole new logging service, because syslogs is not good enough, or something? To boot, it built the logging service around an easily corruptible DB that was invented in-house, rather than something like SQLite. Because SQLite is something, something, bad.
You can always redirect it to syslogd
At least corruption is detectable which is impossible with text files (how do you even know output was not complete there?) and you should really, really check how it handles that corruption.
Yes, systemd is essentially churn for the sake of churn, and architecturally, does it rather poorly, at that.
More like you have absolutely zero clue about it and just yawn bogus claims
View all comments
Show parent comment
3
u/totallyblasted Oct 16 '15 edited Oct 16 '15
You can always put "/etc/init.d/myservice start" as command. In fact on fedora with systemd-sysv (which is sysv compatibility), this is exactly how it works on old school commands and services
Assume /etc/init.d/myservice is just ordinary shell based service as it was in 90s
service myservice startwill output following "Redirecting to /bin/systemctl start myservice.service". And since systemd respects sessions, even if you run that command as ordinary user, gnome-shell will prompt for administrator password with its dialogchkconfig myservice onwill produce /run/systemd/generator.late/myservice.service files (it produces one for each target) where you can modify not only generated variables, but also all others. Like you can set up cpu throtling, respawn on fail (which also works on spawned executables since they will be part of same cgroup)... As for how file is generated in order to show how bs your argument is.And same goes for every command if distro implemented it correctly and note that auto generated unit will have these set up
ExecStart=/etc/init.d/myservice start
ExecStop=/etc/init.d/myservice stop
ExecReload=/etc/init.d/myservice reload
Meanwhile... you should really consider to stop spewing bs. It does not dynamically load services per need. Well, not unless you tell it should.
systemd provides multiple unit types which declare how service should act. .service will always act just as any service did. http://www.freedesktop.org/software/systemd/man/systemd.service.html
But, if you used something like .socket http://www.freedesktop.org/software/systemd/man/systemd.socket.html , then and only then it will be socket activated.
Other unit types like .timer http://www.freedesktop.org/software/systemd/man/systemd.timer.html have their own usage and rules how they are activated
The one problem which you seem you can't wrap your head around. It is not server specific, it also runs on user desktops where something like plugging USB device is more than common.
And even on servers you have things like small pluggable USB display+keyboard devices. On one hand you could say "Why? When I have ssh?", then you should realize that your network might be inaccessible and this is exact problem you want to solve and you can't do that over network.
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/ch-Consistent_Network_Device_Naming.html This is not systemd specific. It is tied to how hw evolved with time since eth0,1... was more than enough
Refer to first point I made. This is either bogus or distro you use has incomplete systemd implementation.
There really was no point in those anyway. At least I have yet to find it in 20 years. It is much better if they were in their own script originally as there is nothing as unfriendly as some verb that only exists in one service
More like you have absolutely zero clue about it and just yawn bogus claims