[systemd-devel] How to handle alias and sysv init enable/disable (mariadb/mysql)
Michael Biebl
mbiebl at gmail.com
Sat Nov 10 18:59:38 UTC 2018
Am Sa., 10. Nov. 2018 um 19:56 Uhr schrieb Michael Biebl <mbiebl at gmail.com>:
>
> My recommendation would be, to not create the myslq(d).service alias
> dynamically via
> [Install]
> Alias=mysql.service
> Alias=mysqld.service
>
> but ship it as a static symlink in the package
As an example:
Historically, the init script for NetworkManager has been called
/etc/init.d/network-manager but I decided to keep the upstream name
NetworkManager.service for the systemd .service unit.
Which is why I ship
ls -al /lib/systemd/system/network-manager.service
lrwxrwxrwx 1 root root 22 Nov 5 16:05
/lib/systemd/system/network-manager.service -> NetworkManager.service
in the network-manager package.
This way, I always have the proper mapping between the legacy init
script and the service file.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
More information about the systemd-devel
mailing list