I want to run a process with a specific user.
On RHEL 7, I am able to this with:
source /etc/rc.d/init.d/functions
daemon --user=myuser $JAVA_HOME/bin/java -cp $appClassPath $MAIN_CLASS
How can I achieve the same behavior on SLES12? The /etc/rc.d/init.d/functions
is not available on SLES12 out of the box.
systemd user service
. might be what you want.