Install a one-shot service to initialize hostid
This commit is contained in:
parent
346c3cb5eb
commit
7ebf94cc23
3 changed files with 28 additions and 2 deletions
13
initialize-host-id.service
Normal file
13
initialize-host-id.service
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Initialize /etc/hostid
|
||||
Documentation=https://git.hamburg.ccc.de/CCCHH/pve-template-vm
|
||||
After=sysinit.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/sbin/initialize-host-id
|
||||
User=root
|
||||
Restart=never
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue