systemd managment for daemons

This commit is contained in:
2025-10-26 18:05:34 -03:00
parent befa4e3ea4
commit b411eff6f4
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Serving packages for everyone in the same network.
After=network.target packets-udp.service
Requires=packets-udp.service
[Service]
Type=simple
User=packets
WorkingDirectory=/var/cache/packets
ExecStart=/etc/packets/httpsocket
Restart=always
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Respond to every request for packages in local network.
After=network.target
[Service]
Type=simple
User=packets
WorkingDirectory=/etc/packets
ExecStart=/etc/packets/udpsocket
Restart=always
[Install]
WantedBy=multi-user.target