VirtualBox

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

最後變更 在這個檔案從44002是 21215,由 vboxsync 提交於 15 年 前

Installer/linux: support Pardus

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 695 位元組
 
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")
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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