feat:首次提交

This commit is contained in:
2024-12-17 18:07:41 +08:00
commit c2e191c8bd
37 changed files with 1024 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
Package: lsyloader
Version: 1.0.1
Section: utils
Priority: optional
Architecture: amd64
Maintainer: lsy@mail.com
Depends: systemd (>= 240), libc6 (>= 2.28)
Description: lsy udpate.
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
#set -e
# Reload systemd configurations
systemctl daemon-reload
# Enable the service to start on boot
systemctl enable lsyloader.service
# Start the service
systemctl start lsyloader.service
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
#set -e
systemctl disable lsyloader.service >/dev/null 2>&1 || true
rm -f /lib/systemd/system/lsyloader.service
rm -f /data/lsyloader/lsyloader.log
systemctl daemon-reload
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
#set -e
# Stop the service if running
if systemctl is-active --quiet lsyloader.service; then
systemctl stop lsyloader.service
fi
# Disable the service
systemctl disable lsyloader.service