lxdm fix service

This commit is contained in:
burakerturk
2016-09-29 17:13:55 +03:00
parent 7ac3627500
commit bb8f02577f
2 changed files with 15 additions and 4 deletions
+8 -4
View File
@@ -11,11 +11,15 @@ DAEMON="/usr/sbin/lxdm"
@synchronized @synchronized
def start(): def start():
startService(command=DAEMON, if status():
pidfile=PIDFILE, return
detach=True,
donotify=True)
reply = startService(command=DAEMON,
pidfile=PIDFILE,
donotify=True)
if reply == 0:
run("/usr/sbin/lxdm")
@synchronized @synchronized
def stop(): def stop():
+7
View File
@@ -76,6 +76,13 @@
</Package> </Package>
<History> <History>
<Update release="2">
<Date>2016-09-29</Date>
<Version>0.5.1</Version>
<Comment>Fix service start on virtual machine</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
<Update release="1"> <Update release="1">
<Date>2016-08-23</Date> <Date>2016-08-23</Date>
<Version>0.5.1</Version> <Version>0.5.1</Version>