Re: systemctl, start a --user service from a root script

2022-04-28 Thread fedora
Hi Mike have you tried to use systemctl's own pöossibilities using a .service file? e.g. [Unit] Description=thunderbird [Service] Environment=DISPLAY=:0.0 Environment=LC_TIME=en_DK.utf-8 ExecStart=/usr/bin/thunderbird User=cvs [Install] WantedBy=graphical.target This service file makes

systemctl, start a --user service from a root script

2022-04-28 Thread Mike Wright
Hey all, I'm trying to execute a user systemd function from /etc/rc.local: 755, root.root. My thought is to use su. Is there a better way? This is where I'm at now. su --login mike --command=systemctl --user start Anybody know how to accomplish this? I personally know about 100 ways to