Use container's service as dependencies in Host's systemd service unit

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

 



Hello, thank you all developers for your efforts first.

I just wonder whether I can use container's services as dependencies in
Host's system service unit or not..
The container has been built by systemd-nspawn and it runs systemd as init
program.

--- Host's service file ---
[Unit]
Description=Leesoo's mydaemon
Requires=leesoo@slices.target  <-- Maybe like this..? it doesn't work by the
way.
After=leesoo@slices.target      <-- same as above

[Service]
ExecStart=/usr/bin/system-run -M leesoo /root/mydaemon
Type=forking
Restart=on-failure
RestartSec=5s
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
--------

Best regards,
Leesoo




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux