systemd 서비스를 실행할 수 없습니다
[chris@alarmpi shellinabox]$ sudo systemctl status shellinaboxd
* shellinaboxd.service - Serve a login-terminal over http on port 80
Loaded: loaded (/usr/lib/systemd/system/shellinaboxd.service; enabled; vendor preset: disabled)
Active: inactive (dead)
Jul 24 22:20:57 alarmpi systemd[1]:[/usr/lib/systemd/system/shellinaboxd.service:3] Unknown lvalue 'Required' in section 'Unit'
Jul 24 22:22:10 alarmpi systemd[1]:[/usr/lib/systemd/system/shellinaboxd.service:3] Unknown lvalue 'Required' in section 'Unit'
Jul 24 22:24:55 alarmpi systemd[1]:[/usr/lib/systemd/system/shellinaboxd.service:3] Unknown lvalue 'Required' in section 'Unit'
이것은 서비스입니다:
[Unit]
Description=Serve a login-terminal over http on port 80
Required=sshd.service
After=sshd.service
[Service]
User=chris
Type=forking
EnvironmentFile=/etc/conf.d/shellinaboxd
ExecStart=/usr/bin/shellinaboxd $SHELLINABOXD_ARGS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-abort
[Install]
WantedBy=multi-user.target
답변1
필수는 유효한 지시어가 아닙니다. 아마 당신은 Requires
둘 중 하나를 의미할 것입니다 RequiredBy
. 이러한 지시어는 systemd.directives(7) 매뉴얼 페이지에 나열되어 있습니다.