Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
slapos
Commits
07e87e75
Commit
07e87e75
authored
Jul 24, 2013
by
Vivien Alger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed postfix service to python script
parent
2aab2906
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
software/davstorage/common.cfg
software/davstorage/common.cfg
+1
-1
software/davstorage/instance-davstorage.cfg
software/davstorage/instance-davstorage.cfg
+2
-0
software/davstorage/templates/postfix.in
software/davstorage/templates/postfix.in
+15
-2
No files found.
software/davstorage/common.cfg
View file @
07e87e75
...
...
@@ -120,7 +120,7 @@ url = ${:_profile_base_location_}/templates/${:filename}
filename = postfix.in
download-only = true
mode = 0755
md5sum =
94799688bf95fb16b86972a23df13af2
md5sum =
29b98e2f3ac937c1e4e73c43a562a2d0
[sendmail-script-template]
recipe = hexagonit.recipe.download
...
...
software/davstorage/instance-davstorage.cfg
View file @
07e87e75
...
...
@@ -231,8 +231,10 @@ md5sum = f681c0a0a17f4b2a0896b952e53239ed
[postfix-service]
recipe = slapos.recipe.template
url = ${postfix-service-template:location}/${postfix-service-template:filename}
python-location = ${python2.7:executable}
postfix-location = ${postfix:location}/usr/sbin/postfix
postfix-config-dir = $${directory:postfix-conf}
pid-location = $${directory:pid}/master.pid
output = $${basedirectory:services}/postfix
mode = 0755
md5sum = 94799688bf95fb16b86972a23df13af2
...
...
software/davstorage/templates/postfix.in
View file @
07e87e75
#!/bin/sh
${
:postfix-location
}
-c
${
:postfix-config-dir
}
start
\ No newline at end of file
#!${:python-location}
import subprocess
import signal
import time
def handler(signum,frame):
subprocess.call("kill -9 `cat ${:pid-location}`")
subprocess.call("${:postfix-location} -c ${:postfix-config-dir} start")
signal.signal(-1,handler)
while True:
time.sleep(120)
\ No newline at end of file
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