forked from buzzhub/lsyupdate
feat:首次提交
This commit is contained in:
@@ -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.
|
||||
Executable
+11
@@ -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
|
||||
Executable
+9
@@ -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
|
||||
|
||||
Executable
+10
@@ -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
|
||||
Reference in New Issue
Block a user