User Tools

Site Tools


rc.local_on_modern_systemd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

rc.local_on_modern_systemd [2020/08/10 18:41] – created tkbletscrc.local_on_modern_systemd [2022/03/27 16:17] (current) tkbletsc
Line 39: Line 39:
  
 Source for the above: [[https://www.linuxbabe.com/linux-server/how-to-enable-etcrc-local-with-systemd|this]] plus [[https://forums.fedoraforum.org/showthread.php?290491-F18-NFS-and-rc-local|this for NFS support]]. Source for the above: [[https://www.linuxbabe.com/linux-server/how-to-enable-etcrc-local-with-systemd|this]] plus [[https://forums.fedoraforum.org/showthread.php?290491-F18-NFS-and-rc-local|this for NFS support]].
 +
 +===== Launch something in a screen session =====
 +
 +If you're looking for my jank-as-hell command that launches something in a screen session on behalf of a user, here it is:
 +
 +  sudo -H -u <USERNAME> screen -dmS <SESSIONNAME> sh -c 'cd <PATH> && ./<SCRIPT_TO_RUN>'
 +
  
rc.local_on_modern_systemd.txt · Last modified: 2022/03/27 16:17 by tkbletsc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki