atsrt seweb and feeder as systemd user unit

This commit is contained in:
2025-05-19 18:09:02 +02:00
parent bb95798ff3
commit 9a673afb21
6 changed files with 83 additions and 47 deletions

11
cfg/feeder@.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=sehistory feeder process
[Service]
Type=simple
WorkingDirectory=/home/l_samenv/sehistory
ExecStart=/usr/bin/python feeder.py -d %i
Restart=always
[Install]
WantedBy=default.target

View File

@ -19,11 +19,11 @@ sea_command = ./SeaServer %(serv)s.tcl
SEWEB_ROOT = ~/seweb
SEWEB_PORT = 8941
seweb_command = ~/sevenv/bin/python secop-webserver %(port)s
seweb_command = ~/sevenv/bin/python secop-webserver %(port)s -i %(ins)s
FEEDER_ROOT = ~/sehistory
FEEDER_PORT = 0
feeder_command = ~/sevenv/bin/python feeder.py %(serv)s
feeder_command = ~/sevenv/bin/python feeder.py -d %(serv)s
PYTHONPATH = ~:~/frappy

11
cfg/seweb@.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=SE web server
[Service]
Type=simple
WorkingDirectory=/home/l_samenv/seweb
ExecStart=/usr/bin/python secop-webserver -i %i
Restart=always
[Install]
WantedBy=default.target