ok
| Direktori : /proc/self/root/proc/self/root/opt/nydus/bin/ |
| Current File : //proc/self/root/proc/self/root/opt/nydus/bin/service.sh |
#!/usr/bin/bash
if [ $# -ne 2 ]; then
echo "Not enough arguments; usage service.sh service_name action"
exit 1
fi
if which systemctl &> /dev/null; then
sudo systemctl $2 $1.service
else
sudo service $1 $2
fi