tech-pkg archive

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

Re: On linux, potentially setting INIT_SYSTEM=systemd?



* On 2024-09-28 at 20:27 BST, coypu%sdf.org@localhost wrote:

I needed to have a tunable for "is this a systemd system?" for a PLIST
variable, and figured INIT_SYSTEM is the right way to put it.

I'm hesitating to commit this because it might have unexpected effects,
what should I watch out for?

There's a lot more work to be done if we're going to support systemd as a new INIT_SYSTEM. It needs to fully support adding and removing services on install, instruct the user on how to enable new services, as well as handling PLIST additions and how example files are managed. Plus no doubt some people will want documentation.

Have a look at mk/init/rc.d.mk and mk/init/smf.mk (the only two INIT_SYSTEM currently supported) for what needs to be done at a minimum.

If there's no interest in doing this, I would just install the systemd file on all OS, as it doesn't hurt having it under share/examples. We already ship nearly 50 systemd *.service files according to a quick grep across PLISTs.

--
Jonathan Perkin   -   mnx.io   -   pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index