Debian 10 サービスが開始されていません

Debian 10 サービスが開始されていません

皆さん、こんにちは、

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. 

私が直面しているこの問題についてどのような考えがありますか?

よろしくお願いします!

ベストアンサー1

おすすめ記事