Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#56761 - [go-ipfs] provide non-user unit
Attached to Project:
Community Packages
Opened by kpcyrd (kpcyrd) - Monday, 18 December 2017, 01:17 GMT
Last edited by Johannes Löthberg (demize) - Saturday, 06 January 2018, 22:24 GMT
Opened by kpcyrd (kpcyrd) - Monday, 18 December 2017, 01:17 GMT
Last edited by Johannes Löthberg (demize) - Saturday, 06 January 2018, 22:24 GMT
|
Detailsgo-ipfs currently does not ship systemd units upstream, so those are managed by archlinux. There's currently only a user unit that is somewhat complicated to setup, so I would like to suggest adding a non-user unit. This unit would be installed to:
/usr/lib/systemd/system/ipfs@.service After that, I can start ipfs with a specific user like this: `systemctl enable --now ipfs@kpcyrd`. This does not replace but supplement the existing user unit. --- >8 --- [Unit] Description=InterPlanetary File System (IPFS) daemon [Service] User=%i ExecStart=/usr/bin/ipfs daemon Restart=on-failure [Install] WantedBy=default.target --- 8< --- |
This task depends upon
Closed by Johannes Löthberg (demize)
Saturday, 06 January 2018, 22:24 GMT
Reason for closing: Fixed
Additional comments about closing: 0.4.13-2
Saturday, 06 January 2018, 22:24 GMT
Reason for closing: Fixed
Additional comments about closing: 0.4.13-2
ls /usr/lib/systemd/{system,user}/syncthing*.service
I wrote that unit that is currently shipped in the go-ipfs package back when it was in the AUR and after using the package for a while I noticed that I should've added both after I learned that other units go this approach to specify the user. :)
[0]: https://wiki.archlinux.org/index.php/IPFS#Using_a_service_to_start_the_daemon
Having to spawn systemd user instances for individual daemons seems somewhat backwards. Aligning this with the solution other packages are using for this problem seems way more elegant.