Skip to content

Commit 323d7f1

Browse files
committed
anim making and errors removing
1 parent eb52721 commit 323d7f1

4 files changed

Lines changed: 15 additions & 5 deletions

File tree

.DS_Store

0 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ After=local-fs.target
55

66
[Service]
77
Type=oneshot
8-
ExecStart=/path/to/your/script.sh
8+
ExecStart=/ShellOS/boot.sh
99
RemainAfterExit=yes
1010

1111
[Install]

daemon.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import time
22
import logging
33

4-
# Set up logging
54
logging.basicConfig(filename='/var/log/mydaemon.log', level=logging.INFO, format='%(asctime)s:%(levelname)s:%(message)s')
65

76
def handle_request(request):
@@ -14,11 +13,10 @@ def handle_request(request):
1413

1514
def daemon_main():
1615
while True:
17-
# Example of how you might handle requests
18-
request = "time" # This could be replaced by a mechanism that reads requests from a file or network
16+
request = "time"
1917
response = handle_request(request)
2018
logging.info(f"Response: {response}")
21-
time.sleep(10) # Delay for demonstration purposes
19+
time.sleep(10)
2220

2321
if __name__ == "__main__":
2422
daemon_main()

daemon.systemd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Unit]
2+
Description=Daemon
3+
After=network.target
4+
5+
[Service]
6+
ExecStart=/usr/bin/python3 /ShellOS/daemon.py
7+
Restart=always
8+
User=nobody
9+
Group=nogroup
10+
11+
[Install]
12+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)