docs: archive example to rootfs

This commit is contained in:
zhihui.ding
2023-04-09 22:30:25 +08:00
parent a9b0ca5de5
commit 1c856a8a1e
48 changed files with 20 additions and 44 deletions

View File

@@ -0,0 +1,16 @@
[Unit]
Description=OpenLAN Switch Database Unit
After=syslog.target network-pre.target
Before=network.target network.service
[Service]
Type=forking
PIDFile=/var/openlan/confd/confd.pid
Restart=on-failure
EnvironmentFile=-/etc/sysconfig/openlan/confd
ExecStart=/var/openlan/script/confd.sh start --detach
ExecStop=/var/openlan/script/confd.sh stop
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,12 @@
[Unit]
Description=OpenLAN Point daemon for %I
After=network.target
[Service]
Type=notify
EnvironmentFile=/etc/sysconfig/openlan/point.cfg
ExecStart=/usr/bin/openlan-point $OPTIONS -conf /etc/openlan/%i.json
Restart=always
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,13 @@
[Unit]
Description=OpenLAN Proxy daemon
After=network.target
[Service]
Type=notify
EnvironmentFile=/etc/sysconfig/openlan/proxy.cfg
ExecStart=/usr/bin/openlan-proxy $OPTIONS
LimitNOFILE=102400
Restart=always
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,14 @@
[Unit]
Description=OpenLAN Virtual Switch daemon
After=network.target
Requires=openlan-confd.service
[Service]
Type=notify
EnvironmentFile=/etc/sysconfig/openlan/switch.cfg
ExecStart=/var/openlan/script/switch.sh start $OPTIONS
LimitNOFILE=102400
Restart=always
[Install]
WantedBy=multi-user.target