systemd는 명령줄을 열고 시작 시 그 안에 있는 프로그램을 실행합니다.

systemd는 명령줄을 열고 시작 시 그 안에 있는 프로그램을 실행합니다.

{운영체제는 redhat linux 8.2}로 custom_start.service파일을 만들었습니다./etc/systemd/system

[Unit]
Description=Auto Start

[Service]
User=ABC
WorkingDirectory=/home/ABC/Desktop/
ExecStart=bash -c "./EFG"

[Install]
WantedBy=multi-user.target

명령을 내리고 systemctl daemon-reload 프로그램 systemctl start custom_start.serviceEFG백그라운드에서 실행되도록 합니다. 실행 후 상태는 active 로 표시됩니다 systemctl status custom_start.service.

EFG새 터미널(gnome-terminal/xterm)에서 프로그램을 실행하고 터미널에서 명령줄 출력을 볼 수 있기를 원합니다 .

Raspbian OS에 대한 비슷한 게시물을 본 적이 있습니다.systemd는 시작 후 깨끗한 터미널에서 실행 중인 프로그램을 자동으로 열 수 있습니까?

관련 정보