systemd DefaultInstance

03/10/2016 - 11:48 von Marc Haber | Report spam
Hallo,

ich habe hier ein /etc/systemd/system/foo@.service:

|[Unit]
|Description=foo (%i instance)
|
|[Service]
|ExecStart=/usr/bin/foo %i
|
|[Install]
|DefaultInstance=default

Wenn ich jetzt aber systemctl start foo sage, kommt:

|[90/585]mh@ronde:~$ sudo systemctl start foo
|Failed to start foo.service: Unit foo.service failed to load: No such file or directory.
|[91/586]mh@ronde:~$ sudo systemctl start foo@
|Failed to start foo@.service: Unit name foo@.service is not valid.
|[92/587]mh@ronde:~$ sudo systemctl start foo.service
|Failed to start foo.service: Unit foo.service failed to load: No such file or directory.
|[93/588]mh@ronde:~$ sudo systemctl start foo@.service
|Failed to start foo@.service: Unit name foo@.service is not valid.
|[94/589]mh@ronde:~$

Wie heißt denn die DefaultInstance? Was muss ich schreiben, wenn ich
"foo default" gestart haben möchte?

Grüße
Marc
Marc Haber | " Questions are the | Mailadresse im Header
Mannheim, Germany | Beginning of Wisdom " | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834
 

Lesen sie die antworten

#1 Holger Marzen
03/10/2016 - 12:09 | Warnen spam
* On Mon, 03 Oct 2016 11:48:57 +0200, Marc Haber wrote:

Hallo,

ich habe hier ein /etc/systemd/system/:

|[Unit]
|Description=foo (%i instance)
|
|[Service]
|ExecStart=/usr/bin/foo %i
|
|[Install]
|DefaultInstance=default

Wenn ich jetzt aber systemctl start foo sage, kommt:

|[90/585]:~$ sudo systemctl start foo
|Failed to start foo.service: Unit foo.service failed to load: No such file or directory.
|[91/586]:~$ sudo systemctl start foo@
|Failed to start : Unit name is not valid.
|[92/587]:~$ sudo systemctl start foo.service
|Failed to start foo.service: Unit foo.service failed to load: No such file or directory.
|[93/588]:~$ sudo systemctl start
|Failed to start : Unit name is not valid.
|[94/589]:~$

Wie heißt denn die DefaultInstance? Was muss ich schreiben, wenn ich
"foo default" gestart haben möchte?



Geht denn systemctl start ?

Ähnliche fragen