11 lines
236 B
Bash
11 lines
236 B
Bash
#!/bin/bash
|
|
|
|
if command -v systemctl >/dev/null 2>&1; then
|
|
systemctl daemon-reload || :
|
|
if [ "$1" -eq 1 ]; then
|
|
systemctl enable --now vctp.service || :
|
|
else
|
|
systemctl try-restart vctp.service || :
|
|
fi
|
|
fi
|