Rename from secop to frappy

debian/ is still missing, will follow in next commit.

Fixes: #4626

Change-Id: Ia87c28c1c75b8402eedbfca47f888585a7881f44
This commit is contained in:
Alexander Zaft
2022-11-08 08:09:41 +01:00
committed by Enrico Faulhaber
parent c1eb764b09
commit 7f166a5b8c
168 changed files with 558 additions and 554 deletions

View File

@ -27,7 +27,7 @@ import os
import sys
from os import path
from secop.lib import generalConfig
from frappy.lib import generalConfig
def main():
@ -36,22 +36,22 @@ def main():
generalConfig.init()
config_dir = generalConfig['confdir']
secop_unit = '/lib/systemd/system/secop@.service'
wants_dir = normal_dir + '/secop.target.wants'
frappy_unit = '/lib/systemd/system/frappy@.service'
wants_dir = normal_dir + '/frappy.target.wants'
all_servers = [base for (base, ext) in
map(path.splitext, os.listdir(config_dir)) if ext == '.cfg']
all_servers.sort()
for srv in all_servers:
symlink = '%s/secop@%s.service' % (normal_dir, srv)
os.symlink(secop_unit, symlink)
symlink = '%s/frappy@%s.service' % (normal_dir, srv)
os.symlink(frappy_unit, symlink)
if not path.isdir(wants_dir):
os.mkdir(wants_dir)
os.symlink(symlink, '%s/%s' % (wants_dir, path.basename(symlink)))
# the stamp file signals successful run of the generator
open(normal_dir + '/secop.stamp', 'w').close()
open(normal_dir + '/frappy.stamp', 'w').close()
if __name__ == '__main__':

View File

@ -1,10 +1,10 @@
[Unit]
Description=SECoP SEC-node: %i
Description=FRAPPY SECoP SEC-node: %i
After=network-online.service
[Service]
Type=notify
ExecStart=/usr/bin/secop-server %I
ExecStart=/usr/bin/frappy-server %I
Restart=on-abnormal
RestartSec=30