From f79dd1a13b73af7af73981898ef7a314401b047e Mon Sep 17 00:00:00 2001 From: Chl Date: Thu, 25 Jul 2019 00:20:02 +0200 Subject: [PATCH] systemd-units: simplify (and don't make it too obvious...) --- systemd-units/screen-session-at-boot.service | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/systemd-units/screen-session-at-boot.service b/systemd-units/screen-session-at-boot.service index 59fb056..c8a4981 100644 --- a/systemd-units/screen-session-at-boot.service +++ b/systemd-units/screen-session-at-boot.service @@ -5,12 +5,10 @@ After=network-online.target auditd.service [Service] Type=oneshot RemainAfterExit=yes -# Note : add 'vm.nr_hugepages = 128' to sysctl.conf -LimitMEMLOCK=268435456 -User=miner -Group=miner -ExecStart=/usr/bin/screen -S bootstartedsession -t daemond -dm /bin/dash -c "cd /home/buggy/my-app/ && ./daemond" -ExecStart=/usr/bin/screen -S bootstartedsession -X screen -t peon1 -dm /bin/dash -c "cd /home/buggy/my-app/ && ./build/bin/peon" +User=steve +Group=steve +ExecStart=/usr/bin/screen -S bootstartedsession -t daemond -dm /bin/dash -c "cd /home/steve/my-app/ && ./daemond" +ExecStart=/usr/bin/screen -S bootstartedsession -X screen -t peon1 -dm /bin/dash -c "cd /home/steve/my-app/ && ./build/bin/peon" [Install] WantedBy=default.target