systemd user unit files from custom directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



hello,

thought i'd ask here first, in case it's a distro problem.

was wondering if we can use systemd to start and stop a daemon for
testing purposes during development. meaning, i would like to not have
to "install" my daemon nor its systemd service file, and instead run
all from the working directory.

from systemd.unit man page i got the impression that this example would work:

❱ tree $PWD
/data/projects/hmm
└── systemd
    └── user
        └── foobar.service

❱ cat systemd/user/foobar.service
[Unit]
Description=Foo Bar
[Service]
ExecStart=/usr/bin/sleep 42

❱ XDG_CONFIG_HOME=$PWD systemctl --user start foobar
Failed to start foobar.service: Unit foobar.service failed to load: No
such file or directory.

am i doing it wrong, or?

Cheers
Andre Schmidt




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux