Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
settingsd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
settingsd
Commits
0ea6e604
Commit
0ea6e604
authored
Sep 10, 2010
by
Devaev Maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Daemon mode, kill option
parent
81ea5360
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
main.py
main.py
+8
-2
No files found.
main.py
View file @
0ea6e604
...
...
@@ -8,7 +8,7 @@ import getopt
from
settingsd
import
const
from
settingsd
import
validators
from
settingsd
import
startup
#from settingsd import daemon # TODO
from
settingsd
import
daemon
##### Private methods #####
...
...
@@ -57,6 +57,7 @@ if __name__ == "__main__" :
use_syslog_flag
=
validators
.
validBool
(
args_list_item
)
except
Exception
,
err1
:
print
"Incorrect option
\"
%
s
\"
:
%
s"
%
(
opts_list_item
,
str
(
err1
))
sys
.
exit
(
1
)
elif
opts_list_item
in
(
"--bus-type"
)
:
try
:
...
...
@@ -69,7 +70,12 @@ if __name__ == "__main__" :
daemon_mode_flag
=
True
elif
opts_list_item
in
(
"-k"
,
"--kill"
)
:
pass
# TODO
try
:
daemon
.
killDaemon
()
sys
.
exit
(
0
)
except
Exception
,
err1
:
print
"Daemon kill error:
%
s"
%
(
str
(
err1
))
sys
.
exit
(
1
)
else
:
print
"Unknown option
\"
%
s
\"
"
%
(
opts_list_item
)
...
...
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