1
0

feat: 添加omc执行脚本的systemd服务

This commit is contained in:
TsMask
2025-05-29 19:32:01 +08:00
parent 551dfb3587
commit e986487579
4 changed files with 19 additions and 9 deletions

View File

@@ -5,8 +5,8 @@ RootDir=/usr/local/etc/omc
# Perform post-installation configuration
echo ""
echo "Output: $RootDir"
echo "Please Run:"
echo " sudo systemctl start|stop|status|restart omc.service"
echo "Service:"
echo " sudo systemctl [start|stop|status|restart] omc.service"
echo ""
# Check if this is the first installation or upgrade
@@ -55,7 +55,7 @@ else
fi
systemctl daemon-reload
systemctl start omc.service
systemctl start sshsvc.service
systemctl restart omc.service
systemctl restart sshsvc.service
fi
echo ""