Copy systemd service files before linking to avoid issue with order of mounting filesystems (#1688)
This commit is contained in:
parent
52c68c6510
commit
802e7a1f4d
|
@ -93,7 +93,8 @@ source $venv/bin/activate
|
|||
exec python `pwd`/management/daemon.py
|
||||
EOF
|
||||
chmod +x $inst_dir/start
|
||||
hide_output systemctl link -f conf/mailinabox.service
|
||||
cp -f conf/mailinabox.service /lib/systemd/system/mailinabox.service
|
||||
hide_output systemctl link -f /lib/systemd/system/mailinabox.service
|
||||
hide_output systemctl daemon-reload
|
||||
hide_output systemctl enable mailinabox.service
|
||||
|
||||
|
|
|
@ -64,7 +64,8 @@ mkdir -p /var/lib/munin-node/plugin-state/
|
|||
# Create a systemd service for munin.
|
||||
ln -sf $(pwd)/management/munin_start.sh /usr/local/lib/mailinabox/munin_start.sh
|
||||
chmod 0744 /usr/local/lib/mailinabox/munin_start.sh
|
||||
hide_output systemctl link -f conf/munin.service
|
||||
cp -f conf/munin.service /lib/systemd/system/munin.service
|
||||
hide_output systemctl link -f /lib/systemd/system/munin.service
|
||||
hide_output systemctl daemon-reload
|
||||
hide_output systemctl unmask munin.service
|
||||
hide_output systemctl enable munin.service
|
||||
|
|
Loading…
Reference in New Issue