VirtualBox

source: vbox/trunk/src/VBox/Installer/linux/vboxdrv-pardus.py@ 33567

Last change on this file since 33567 was 21215, checked in by vboxsync, 15 years ago

Installer/linux: support Pardus

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 695 bytes
Line 
1# Todo: this could be autogenerated from the init script lsbinfo
2# Can Pardus do that now?
3
4serviceType = "local"
5serviceDesc = _({"en": "VirtualBox Driver Service"})
6serviceDefault = "on"
7
8from comar.service import *
9import time, os
10
11@synchronized
12def start():
13 ret = run("/usr/sbin/vboxdrv start")
14 if ret == 0:
15 notify("System.Service", "Changed", (script(), "started"))
16 else:
17 fail("Unable to start service")
18
19@synchronized
20def stop():
21 ret = run("/usr/sbin/vboxdrv stop")
22 if ret == 0:
23 notify("System.Service", "Changed", (script(), "stopped"))
24 else:
25 fail("Unable to stop service")
26
27def status():
28 return run("/usr/sbin/vboxdrv status")
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette