Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
already, i would suggest doing what i do here for my /etc/ files - https://github.com/walderf/dotfiles/tree/main/.config/dotfiles/etc it's too simple, really, because you just COPY the confs/dirs/etc you want to backup into ~/.config/etc/ and voila assuming you had some custom scripts/programs to go along with the service files that are perhaps hosted in ~/.local/bin, do the same thing, https://github.com/walderf/dotfiles/tree/main/.local like i do here with the share dir if they're located in /usr/local/bin/ or /usr/bin/, instead, just create a dir in ~/.config/ named ./usrbin/ or whatever, and follow the same steps. for more information how how i manage my dotfiles using only a git bare repository and github, go here https://github.com/walderf/dotfiles hope this helps?
for instance, check https://github.com/archlinux/svntogit-community/blob/packages/spotifyd/trunk/PKGBUILD
https://github.com/Spotifyd/spotifyd/blob/master/contrib/spotifyd.service and the service file, see how it has WantedBy=default.target under [Install]? pretty sure it starts/enables when that target is reached during the init process of the system.
when the package being installed is intended to be ran as a systemd service, the PKGBUILD file, which we'll reference maldet's as an example, contains a line with a command, see line 107, that places the service file, in our case this file into the location specified, /usr/lib/systemd/system/maldet.service.
at this point in the "install" process the default hooks have been applied, and the specific one here that matters is /usr/share/libalpm/hooks/30-systemd-daemon-reload.hook, source code.
Related posts
- Use Spotify made for Developers
- Update on the suggestion for Spotify to take ownership of the Flatpak
- Spotify users, do you recommend spotify-easyrpm or the flatpak?
- As a micro services expert, I know the fix for that: did you try sticking it into a systemd daemon that restarts it automatically when it crashes?
- Spotifyd