Re: How to handle alias and sysv init enable/disable (mariadb/mysql)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Sa., 10. Nov. 2018 um 19:56 Uhr schrieb Michael Biebl <mbiebl@xxxxxxxxx>:
>
> 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?
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux