Re: [systemd-devel] WorkingDirectory for user units

2011-12-15 Thread Lennart Poettering
On Sat, 03.12.11 16:52, Ran Benita ([email protected]) wrote: > I don't think there's a way to do it. I looked into either > - making the home directory the default working directory (for user's >systemd) > - adding a %~ format specifier > - or maybe both? I prefer %~ (or actually %h, see o

Re: [systemd-devel] WorkingDirectory for user units

2011-12-05 Thread Thomas Meyer
Am Samstag, den 03.12.2011, 16:52 +0200 schrieb Ran Benita: > On Sat, Dec 03, 2011 at 02:32:19PM +0100, Thomas Meyer wrote: > > 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 a

Re: [systemd-devel] WorkingDirectory for user units

2011-12-03 Thread Ran Benita
On Sat, Dec 03, 2011 at 02:32:19PM +0100, Thomas Meyer wrote: > 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

[systemd-devel] WorkingDirectory for user units

2011-12-03 Thread Thomas Meyer
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.