Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
S
scom
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
scom
Commits
f5994f66
Kaydet (Commit)
f5994f66
authored
Eki 11, 2007
tarafından
Bahadır Kandemir
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
beh
üst
d56d1f52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
service.py
api/comar/service.py
+7
-13
No files found.
api/comar/service.py
Dosyayı görüntüle @
f5994f66
...
...
@@ -334,20 +334,14 @@ def stopService(pidfile=None, command=None, args=None, chuid=None, user=None, na
# Already stopped, no need to send notification.
return
None
else
:
if
command
and
user
:
pids
=
_findProcesses
(
user
=
user
,
command
=
command
)
if
pids
is
not
None
:
for
pid
in
pids
:
os
.
kill
(
pid
,
signalno
)
notify
(
"System.Service.changed"
,
"stopped"
)
elif
name
and
user
:
pids
=
_findProcesses
(
user
=
user
,
name
=
name
)
if
pids
is
not
None
:
for
pid
in
pids
:
os
.
kill
(
pid
,
signalno
)
notify
(
"System.Service.changed"
,
"stopped"
)
else
:
if
not
command
and
not
user
and
not
name
:
raise
TypeError
(
"You should give a criteria to select service processes!"
)
pids
=
_findProcesses
(
user
=
user
,
command
=
command
,
name
=
name
)
if
pids
is
not
None
:
for
pid
in
pids
:
os
.
kill
(
pid
,
signalno
)
if
donotify
:
notify
(
"System.Service.changed"
,
"stopped"
)
return
None
def
isServiceRunning
(
pidfile
=
None
,
command
=
None
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment