Skip to content

Commit

Permalink
sysctrl service
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Manske committed Feb 17, 2025
1 parent 41a8488 commit f90f401
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions petscan.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=PetScan
After=network.target

[Service]
Type=exec
ExecStart=/home/magnus/petscan_rs/run.sh
MemoryMax=7G
Restart=always
StartLimitBurst=20
StartLimitIntervalSec=10

[Install]
WantedBy=default.target
1 change: 1 addition & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
cd /home/magnus/petscan_rs/
for (( ; ; ))
do
sudo /home/magnus/petscan_rs/petscan_rs
Expand Down

0 comments on commit f90f401

Please sign in to comment.