tag:blogger.com,1999:blog-3138395946364435356.post5592372765269990740..comments2024-03-09T00:18:24.539-08:00Comments on Welcome To My Blog Page: What Is Systemd and How It Works (Part 1)Khosro Taraghihttp://www.blogger.com/profile/10896471424990903022noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-3138395946364435356.post-16236821935573825462019-09-09T22:04:36.781-07:002019-09-09T22:04:36.781-07:00I have a QT application that I want to run as a se...I have a QT application that I want to run as a service. I have used the below line in service section of service file<br /><br />ExecStart=/opt/thor/thor -platform -wayland-egl -qws<br /><br />It give me below error<br /> Loaded: loaded (/etc/systemd/system/thor.service; enabled; vendor preset: enabled)<br /> Active: activating (auto-restart) (Result: core-dump) since Fri 2019-09-06 12:33:23 UTC; 4s ago<br /> Process: 989 ExecStart=/opt/thor/thor -platform -wayland-egl -qws [[0;1;31m(code=dumped, signal=ABRT)[[0m<br /> Main PID: 989 (code=dumped, signal=ABRT)<br /><br />Any lead or input for this will be highly appreciated.Anonymoushttps://www.blogger.com/profile/08345734530084830195noreply@blogger.comtag:blogger.com,1999:blog-3138395946364435356.post-67382155383417884302018-02-23T05:06:23.505-08:002018-02-23T05:06:23.505-08:00As documented, ConditionPathExists must be in the ...As documented, ConditionPathExists must be in the [Unit] section. You put yours in the [Service] section, which is wrong.Anonymoushttps://www.blogger.com/profile/02736672528741637413noreply@blogger.comtag:blogger.com,1999:blog-3138395946364435356.post-80739151008694682802016-10-31T10:35:39.494-07:002016-10-31T10:35:39.494-07:00`ConditionPathExists` doesn't work for me. Wha...`ConditionPathExists` doesn't work for me. What am I doing wrong:<br /><br />```<br />[Unit]<br />Description=Test condition<br />Requires=xyz.service<br />After=xyz.service<br />[Service]<br />ConditionPathExists=/etc/test.env<br />ExecStart=/usr/bin/bash -c 'echo "hello"'<br />RemainAfterExit=true<br />Restart=on-failure<br />RestartSec=10<br />[Install]<br />WantedBy=multi-user.target<br />```<br /><br />When I run the above unit, `hello` is printed even though `/etc/test.env` does not existDhawalhttps://www.blogger.com/profile/00886112950550320860noreply@blogger.comtag:blogger.com,1999:blog-3138395946364435356.post-83890029466987268922015-10-18T05:07:18.564-07:002015-10-18T05:07:18.564-07:00Know how it works! Prepare for the future today. M...Know how it works! Prepare for the future today. Many scientific revelations and platform for innovative ideas.<br /><br /><a href="http://www.ted.com/profiles/5023597" rel="nofollow">ted</a>Matchfinder Katyhttps://www.blogger.com/profile/16737951240743828881noreply@blogger.com