mirror of
https://github.com/luscis/openlan.git
synced 2025-10-10 19:10:11 +08:00
docs: archive example to rootfs
This commit is contained in:
16
dist/rootfs/usr/lib/systemd/system/openlan-confd.service
vendored
Executable file
16
dist/rootfs/usr/lib/systemd/system/openlan-confd.service
vendored
Executable 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
|
12
dist/rootfs/usr/lib/systemd/system/openlan-point@.service
vendored
Executable file
12
dist/rootfs/usr/lib/systemd/system/openlan-point@.service
vendored
Executable 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
|
13
dist/rootfs/usr/lib/systemd/system/openlan-proxy.service
vendored
Executable file
13
dist/rootfs/usr/lib/systemd/system/openlan-proxy.service
vendored
Executable 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
|
14
dist/rootfs/usr/lib/systemd/system/openlan-switch.service
vendored
Executable file
14
dist/rootfs/usr/lib/systemd/system/openlan-switch.service
vendored
Executable 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
|
Reference in New Issue
Block a user