<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Linux Service in Debian 10]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have installed Mango Automation software v3.6.4 on a HP Stream 13 with Debian 10 (64 Bit version) and Open JDK 11.0.4.<br />
I can manually start Mango software from terminal without problem.<br />
I ran into trouble when i tried to setup Linux Service. I found a similar problem on the forum which has a status code of 126 but mine<br />
has got status code of 127.<br />
Below is what i have encountered:<br />
I followed the instructions on how to setup a Linux service and when i ran the status command, below is what i get from the terminal:<br />
<em>-<br />
Aug 05 21:50:50 debian-mango systemd[1]: Starting LSB: Start or stop the Mango Automation...<br />
Aug 05 21:50:50 debian-mango systemd[1]: mango.service: Control process exited, code=exited, status=127/n/a<br />
Aug 05 21:50:50 debian-mango systemd[1]: mango.service: Failed with result 'exit-code'.<br />
Aug 05 21:50:50 debian-mango systemd[1]: Failed to start LSB: Start or stop the Mango Automation.</em></p>
<p dir="auto">● mango.service - LSB: Start or stop the Mango Automation<br />
Loaded: loaded (/etc/init.d/mango; generated)<br />
Active: failed (Result: exit-code) since Mon 2019-08-05 21:50:50 AEST; 6min ago<br />
Docs: man:systemd-sysv-generator(8)<br />
Process: 764 ExecStart=/etc/init.d/mango start (code=exited, status=127)</p>
<p dir="auto">Aug 05 21:50:50 debian-mango systemd[1]: Starting LSB: Start or stop the Mango Automation...<br />
Aug 05 21:50:50 debian-mango systemd[1]: mango.service: Control process exited, code=exited, status=127/n/a<br />
Aug 05 21:50:50 debian-mango systemd[1]: mango.service: Failed with result 'exit-code'.<br />
Aug 05 21:50:50 debian-mango systemd[1]: Failed to start LSB: Start or stop the Mango Automation.<br />
screenshot:<br />
<img src="https://i.imgur.com/jCcaWKh.png" alt="0_1565007469751_a7276214-701f-4945-b871-7c3708c1101b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">below is my mango service file content:<br />
(i played with the path for the commands but ended up with the same message)</p>
<pre><code>*#!/bin/sh
# chkconfig: 235 99 10
# description: Start or stop the Mango Automation
#
### BEGIN INIT INFO
# Provides: mango
# Required-Start: $network $syslog
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start or stop the Mango Automation
### END INIT INFO
start="/vwang/mango/bin/ma.sh start"
stop="/vwang/mango/bin/ma.sh stop"
lockfile=/var/lock/subsys/mango
name='Mango'
case "$1" in
'start')
$start&gt;/dev/null 2&gt;&amp;1 &lt;/dev/null
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
touch $lockfile&gt;/dev/null 2&gt;&amp;1
fi
;;
'stop')
$stop
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
rm -f $lockfile
fi
;;
'status')
status Mango
;;
'restart'|'reload'|'condrestart')
$stop ; $start
RETVAL=$?
;;
*)
echo "Usage: sudo service{ start | stop | restart | reload | condrestart}"
RETVAL=1
;;
esac
exit $RETVAL*
</code></pre>
<p dir="auto">Please let me know if the service message is correct. If it is not, what do I need to change to make it work.</p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://forum.mango-os.com/topic/4374/linux-service-in-debian-10</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Mar 2026 07:47:07 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4374.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Aug 2019 12:20:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Linux Service in Debian 10 on Mon, 05 Aug 2019 16:48:25 GMT]]></title><description><![CDATA[<p dir="auto">Glad you got it figured out!</p>
]]></description><link>https://forum.mango-os.com/post/23022</link><guid isPermaLink="true">https://forum.mango-os.com/post/23022</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 05 Aug 2019 16:48:25 GMT</pubDate></item><item><title><![CDATA[Reply to Linux Service in Debian 10 on Mon, 05 Aug 2019 13:45:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/phildunlap">@<bdi>phildunlap</bdi></a><br />
Hi, Phil<br />
Success!<br />
In my last reply, I said i added 'home/vwang' in the path of the .sh files but it still didnt work.<br />
I did a restart after that, and it is working now.<br />
Here is the output just in case anyone wonders what the 'Ok' message looks like:<br />
<img src="https://i.imgur.com/VXRG3Ft.png" alt="0_1565013292870_ebf23c97-fe83-4886-812d-551ee98f62f5-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">message in text form:<br />
mango.service - LSB: Start or stop the Mango Automation<br />
Loaded: loaded (/etc/init.d/mango; generated)<br />
Active: active (running) since Mon 2019-08-05 23:47:15 AEST; 1min 28s ago<br />
Docs: man:systemd-sysv-generator(8)<br />
Process: 797 ExecStart=/etc/init.d/mango start (code=exited, status=0/SUCCESS)<br />
Tasks: 40 (limit: 2166)<br />
Memory: 405.7M<br />
CGroup: /system.slice/mango.service<br />
├─ 825 /bin/bash /home/vwang/mango/bin/ma-start.sh<br />
├─ 866 java -server -cp /home/vwang/mango/overrides/classes:/home/vwang/mango/classes:/home/vwang/mango/overrides/properties:/home/vw<br />
└─1984 sleep 3</p>
<p dir="auto">Aug 05 23:47:15 debian-mango systemd[1]: Starting LSB: Start or stop the Mango Automation...<br />
Aug 05 23:47:15 debian-mango systemd[1]: Started LSB: Start or stop the Mango Automation.</p>
<p dir="auto">Thanks again for your prompt responses!</p>
]]></description><link>https://forum.mango-os.com/post/23012</link><guid isPermaLink="true">https://forum.mango-os.com/post/23012</guid><dc:creator><![CDATA[cwangv]]></dc:creator><pubDate>Mon, 05 Aug 2019 13:45:35 GMT</pubDate></item><item><title><![CDATA[Reply to Linux Service in Debian 10 on Mon, 05 Aug 2019 13:27:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi, Phil<br />
Here is the output:</p>
<p dir="auto">vwang@debian-mango:~$ sudo ./mango/bin/ma.sh start<br />
[sudo] password for vwang:<br />
MA_HOME is /home/vwang/mango<br />
vwang@debian-mango:~$ ma-start: MA started with Process ID:  7580</p>
<p dir="auto">It started successfully.<br />
I actually went into the mango service file and added '/home/vwang' into the path. but same message.<br />
Should at least the service status indication part work even with wrong path for the .sh file?</p>
<p dir="auto">thanks.</p>
]]></description><link>https://forum.mango-os.com/post/23010</link><guid isPermaLink="true">https://forum.mango-os.com/post/23010</guid><dc:creator><![CDATA[cwangv]]></dc:creator><pubDate>Mon, 05 Aug 2019 13:27:09 GMT</pubDate></item><item><title><![CDATA[Reply to Linux Service in Debian 10 on Mon, 05 Aug 2019 12:57:22 GMT]]></title><description><![CDATA[<p dir="auto">It sounds like maybe the path to Mango is wrong. Maybe the Mango directory is <code>/home/vwang/mango/</code> ? Can you share the output of running <code>pwd</code> from wherever running <code>sudo ./mango/bin/ma.sh start</code> worked?</p>
]]></description><link>https://forum.mango-os.com/post/23008</link><guid isPermaLink="true">https://forum.mango-os.com/post/23008</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 05 Aug 2019 12:57:22 GMT</pubDate></item><item><title><![CDATA[Reply to Linux Service in Debian 10 on Mon, 05 Aug 2019 12:42:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/phildunlap">@<bdi>phildunlap</bdi></a><br />
No, Phil.<br />
But i can do<br />
sudo ./mango/bin/ma.sh start.</p>
<p dir="auto">I did try using the 'mango/' without '/vwang' in front of it in the mango service file. but same message.</p>
]]></description><link>https://forum.mango-os.com/post/23007</link><guid isPermaLink="true">https://forum.mango-os.com/post/23007</guid><dc:creator><![CDATA[cwangv]]></dc:creator><pubDate>Mon, 05 Aug 2019 12:42:01 GMT</pubDate></item><item><title><![CDATA[Reply to Linux Service in Debian 10 on Mon, 05 Aug 2019 12:36:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi cwangv,</p>
<p dir="auto">Are you able to launch Mango from the command line?</p>
<p dir="auto"><code>sudo /vwang/mango/bin/ma.sh start</code> ?</p>
]]></description><link>https://forum.mango-os.com/post/23006</link><guid isPermaLink="true">https://forum.mango-os.com/post/23006</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 05 Aug 2019 12:36:38 GMT</pubDate></item></channel></rss>