[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

/sysD/

  1. Home
  2. Board: /g/ - Technology
  3. Reading: /sysD/

Thread replies: 17
Thread images: 3

File: systemd.png (31KB, 600x400px) Image search: [Google] [Yandex] [Bing]
systemd.png
31KB, 600x400px
systemd best practices?

I usually keep my .service files in ~/.config/systemd/user and start them in user mode (i.e. systemctl --user start/enable service.service). Is this the best way to do it or is there a better option? For multi-user systems I'm assuming ~/.local/share/systemd/user is the preferred location, with [email protected] files user-specific scripts. Is this correct? Or should I stick them in /etc/systemd/system instead?
>>
>>55284422

>~/.local/share/systemd/user is the preferred location

How are the other users going to read those files if they're in your home directory? I think you're supposed to use /etc/systemd/user for multi-user unit files.
>>
>>55284422
>systemd best practices?
sudo rm -rf --no-preserve-root /
>>
File: 4L_QSO8Qbx2.jpg (104KB, 540x720px) Image search: [Google] [Yandex] [Bing]
4L_QSO8Qbx2.jpg
104KB, 540x720px
>>55284422
Install gentoo
Free yourself of systemD cancer
>>
>>55284725
>>55284863
>>
>>55284422
I like systemd too, but rtfm mate

https://www.freedesktop.org/software/systemd/man/systemd.unit.html

One of the best things about systemd is that it's a complete ecosystem, so you actually can write a reliable, streamline documentation without having to cover 2 billion possible combinations of freetard software
>>
>>55285325
it's also one of the worst :^)
>>
Remove systemd
>>
>>55285435
Yeah, that's why it's a matter of choice, not better or worse. Some people like free and customizable, some people like working and documented, there's nothing wrong with that
>>
Get rid of it
>>
>>55285435
>using the smiley with a carat nose
>>
>>55285325
say I keep a bin in ~/bin that I want a multi-user service file to access

I know I cannot use ~ in the .service file, but Ii also found I can't use $I (i.e. the username in systemd). is $HOME available? How do I reference per-user variables in the systemd script?
>>
>>55284422
REMOVE
E
M
O
V
E
>>
>>55284719
~/.local has r+x rights by default
>>
>>55286462

What good does that do when your HOME directory is 700?
>>
>>55286783
ah yes
>>
>>55284719
>>55286783

What's the difference between a user service file, i.e. [email protected] in /etc/systemd/system versus a service file, i.e. x11vnc.service in /etc/systemd/user?
Thread replies: 17
Thread images: 3
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK