Package Details: opensysusers 0.4.5-1

Git Clone URL: https://aur.archlinux.org/opensysusers.git (read-only)
Package Base: opensysusers
Description: A standalone utility for handling systemd-style sysusers.d users and groups
Upstream URL: https://github.com/artix-linux/opensysusers
Keywords: init nosystemd openrc
Licenses: custom:BSD2
Submitter: Lone_Wolf
Maintainer: Lone_Wolf
Last Packager: Lone_Wolf
Votes: 3
Popularity: 0.003275
First Submitted: 2017-12-12 17:15
Last Updated: 2018-04-10 11:39

Latest Comments

Lone_Wolf commented on 2017-12-14 10:49

Yes, that's a good idea. I'll change the package.

Cromer commented on 2017-12-13 14:26

There is a big flaw if you don't use the hook though. When a user installs a package that uses sysusers.d, it doesn't install the user/group right away. This means that the new software that was installed is unusable until reboot, or they manually restart the opensysusers service, or run opensysusers in the console.

So a combination of hook and init script might be best to solve all these cases?

Lone_Wolf commented on 2017-12-13 14:06

The main difference between the hook and script is when they are run.

pacman hooks are only run when pacman changes files in one of the sysusers.d folders, the openrc script is run at boot.

I can think of 2 situations where the pacman hook is not enough :

  • user changes sysusers.d files manually . Don't think that will happen often, but it can occur.

  • sysusers.d needs stuff to be setup at boot to work correctly. I do not know if this is needed, but systemd does appear to run systemd-sysusers.service at every boot (through sysinit.target) .

Cromer commented on 2017-12-13 00:27

I recommend not including the openrc script in the package, it is only included for non pacman based distros. It is better to use hooks with pacman. Here is the way it is done under artix linux: https://github.com/artix-linux/system/tree/master/opensysusers

Lone_Wolf commented on 2017-12-12 17:19

Don't forget to run

rc-update add opensysusers boot

else installing this will have no effect