여러분, 안녕하세요,
Debian 10용 서비스를 만들고 싶지만 "sudo systemctl start boot_time", 시작되지 않습니다. 하지만 스크립트 자체를 시작하면 시작됩니다.
두 파일 모두에 chmod 권한을 설정했습니다.
Boot_time.sh:
#!/bin/bash
AppLauncher
Boot_time.service:
[Unit]
Description=Launch AppLauncher when distro is booting
[Service]
Type=simple
ExecStart=/bin/bash /usr/bin/boot_time.sh
Restart=on-failure
[Install]
WantedBy=multi-user.target
이것은 내가 실행할 때의 로그입니다."sudo systemctl은 boot_time.service를 시작합니다.":
● boot_time.service - Launch AppLauncher when distro is booting
Loaded: loaded (/etc/systemd/system/boot_time.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-12-10 22:56:35 CET; 13s ago
Process: 1513 ExecStart=/bin/bash /usr/bin/boot_time.sh (code=exited, status=134)
Main PID: 1513 (code=exited, status=134)déc. 10 22:56:35 debian bash[1513]: /usr/bin/boot_time.sh : ligne 3 : 1514 Abandon AppLauncher
déc. 10 22:56:35 debian systemd[1]: boot_time.service: Main process exited, code=exited, status=134/n/a
déc. 10 22:56:35 debian systemd[1]: boot_time.service: Failed with result 'exit-code'.
déc. 10 22:56:35 debian systemd[1]: boot_time.service: Service RestartSec=100ms expired, scheduling restart.
déc. 10 22:56:35 debian systemd[1]: boot_time.service: Scheduled restart job, restart counter is at 5.
déc. 10 22:56:35 debian systemd[1]: Stopped Launch AppLauncher when distro is booting.
déc. 10 22:56:35 debian systemd[1]: boot_time.service: Start request repeated too quickly.
déc. 10 22:56:35 debian systemd[1]: boot_time.service: Failed with result 'exit-code'.
déc. 10 22:56:35 debian systemd[1]: Failed to start Launch AppLauncher when distro is booting.
내가 직면한 이 문제에 대해 어떤 생각이 있습니까?
미리 감사드립니다!