Hi,

I put a "user" unit in "/usr/lib/systemd/user" called
"smServer.service":

[Unit]
Description=ShortMessage Server
After=network.target

[Service]
Type=simple
StandardOutput=syslog
Environment=CLASSPATH=/usr/share/java/smServer.jar
WorkingDirectory=/home/thomas
ExecStart=/usr/bin/java smServer.Controller

[Install]
WantedBy=multi-user.target

1.) Is there an option to set the WorkingDirectory automatically to the
users home? The environment variable "HOME" seems to get set for the
process. Or is there an option to set the WorkingDirectory based on the
user? default working directory seems to be "/".

2.) Also i'm not sure which WantedBy= in the [Install] section to use?
Do I need the section at all? what dependencies/values are sensible
here?

greets
thomas


_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to