2018-10-14 02:01:35 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-07-06 01:48:45 -04:00
|
|
|
# Reload systemd's view of the units
|
|
|
|
systemctl daemon-reload
|
|
|
|
|
2019-05-23 22:38:45 -04:00
|
|
|
# Enable the service and target
|
2020-02-08 19:16:19 -05:00
|
|
|
systemctl enable /lib/systemd/system/pvcnoded.service
|
2022-10-27 13:54:59 -04:00
|
|
|
systemctl enable /lib/systemd/system/pvcautoready.service
|
2020-02-08 19:16:19 -05:00
|
|
|
systemctl enable /lib/systemd/system/pvc.target
|
2018-10-14 02:01:35 -04:00
|
|
|
|
2019-05-23 22:38:45 -04:00
|
|
|
# Inform administrator of the service restart/startup not occurring automatically
|
2020-02-08 19:16:19 -05:00
|
|
|
if systemctl is-active --quiet pvcnoded.service; then
|
|
|
|
echo "NOTE: The PVC node daemon (pvcnoded.service) has not been restarted; this is up to the administrator."
|
2018-10-14 02:01:35 -04:00
|
|
|
else
|
2020-02-08 19:16:19 -05:00
|
|
|
echo "NOTE: The PVC node daemon (pvcnoded.service) has not been started; create a config file at /etc/pvc/pvcnoded.yaml then start it."
|
2018-10-14 02:01:35 -04:00
|
|
|
fi
|
2023-10-26 12:56:20 -04:00
|
|
|
|
|
|
|
# Clean up any old sample configs
|
|
|
|
rm /etc/pvc/pvcnoded.sample.yaml || true
|