diff --git a/systemd/packets-http.service b/systemd/packets-http.service new file mode 100644 index 0000000..e7f7eb1 --- /dev/null +++ b/systemd/packets-http.service @@ -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 \ No newline at end of file diff --git a/systemd/packets-udp.service b/systemd/packets-udp.service new file mode 100644 index 0000000..0d0382c --- /dev/null +++ b/systemd/packets-udp.service @@ -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 \ No newline at end of file