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
f8c9b8c6
Commit
f8c9b8c6
authored
Oct 06, 2010
by
Devaev Maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added startup and application instances to runtime
parent
c66117dd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
main.conf
configs/main.conf
+2
-0
config.py
settingsd/config.py
+2
-0
startup.py
settingsd/startup.py
+6
-2
No files found.
configs/main.conf
View file @
f8c9b8c6
[
settingsd
]
bus_type
=
session
log_level
=
2
enabled
=
yes
[
hello
]
enabled
=
yes
settingsd/config.py
View file @
f8c9b8c6
...
...
@@ -28,6 +28,8 @@ ConfigDictObject = {
"log_use_colors"
:(
const
.
DEFAULT_LOG_USE_COLORS_FLAG
,
validators
.
validBool
)
},
RUNTIME_SECTION
:
{
"application"
:
(
None
,
None
),
"startup"
:
(
None
,
None
),
"bus_name"
:
(
None
,
None
),
"use_syslog"
:
(
False
,
None
)
}
...
...
settingsd/startup.py
View file @
f8c9b8c6
...
...
@@ -63,6 +63,11 @@ class Startup(object) :
if
self
.
_log_level
!=
None
:
config
.
setValue
(
config
.
APPLICATION_SECTION
,
"log_level"
,
self
.
_log_level
)
config
.
setValue
(
config
.
RUNTIME_SECTION
,
"application"
,
self
.
_app
)
config
.
setValue
(
config
.
RUNTIME_SECTION
,
"startup"
,
self
)
###
def
runInteractive
(
self
)
:
try
:
self
.
_app
.
loadModules
()
...
...
@@ -97,8 +102,7 @@ class Startup(object) :
umask
=
(
077
if
os
.
getuid
()
==
0
else
None
)
daemon
.
startDaemon
(
self
.
runInteractive
,
work_dir_path
,
umask
)
### Handlers ###
###
def
quit
(
self
,
signum
=
None
,
frame
=
None
)
:
if
signum
!=
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