mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-16 04:07:51 +00:00
31 lines
573 B
Desktop File
31 lines
573 B
Desktop File
[Unit]
|
|
Description=Janus WebRTC Server
|
|
Documentation=https://janus.conf.meetecho.com/
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
WorkingDirectory=/opt/janus
|
|
ExecStart=/opt/janus/bin/janus
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=always
|
|
RestartSec=10
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=janus
|
|
|
|
# 安全设置
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/opt/janus/logs /opt/janus/janus.pid
|
|
|
|
# 资源限制
|
|
LimitNOFILE=65536
|
|
LimitNPROC=4096
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |