Systemd init scripts not working for docker-registry
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
docker-registry (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When installing docker-registry individually in a machine, it works well and the service can be started with systemd. But trying to enable it for boot time with
~# systemctl enable docker-registry
does not work. Also, when searching for it in the unit list, it shows as "static"
~# systemctl list-unit-files
UNIT FILE STATE
proc-sys-
...
docker-
...
The only solution I found so far is to set the service as a desired one for multi-user.
~# ln -s /lib/systemd/
Also, it seems to be an error in the /etc/init/
description "the Docker toolset to pack, ship, store, and deliver content"
start on local-filesystems
stop on runlevel [!2345]
respawn
setuid docker-registry
script
BINARY=
CONFIG=
if [ -f /etc/default/
. /etc/default/
fi
exec "$BINARY" "$CONFIG"
end script
# vim:set ft=upstart:
description: | updated |