diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-webserver/recipes-httpd/hiawatha/files | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/hiawatha/files')
-rw-r--r-- | meta-webserver/recipes-httpd/hiawatha/files/hiawatha-init | 44 | ||||
-rw-r--r-- | meta-webserver/recipes-httpd/hiawatha/files/hiawatha.service | 16 |
2 files changed, 60 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/hiawatha/files/hiawatha-init b/meta-webserver/recipes-httpd/hiawatha/files/hiawatha-init new file mode 100644 index 0000000000..47fc0877ad --- /dev/null +++ b/meta-webserver/recipes-httpd/hiawatha/files/hiawatha-init | |||
@@ -0,0 +1,44 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | ### BEGIN INIT INFO | ||
4 | # Provides: hiawatha httpd httpd-cgi | ||
5 | # Required-Start: $syslog $network $remote_fs | ||
6 | # Required-Stop: $syslog $network $remote_fs | ||
7 | # Default-Start: 2 3 4 5 | ||
8 | # Default-Stop: 0 1 6 | ||
9 | # Short-Description: Hiawatha webserver | ||
10 | # Description: Hiawatha, a secure and advanced webserver. | ||
11 | ### END INIT INFO | ||
12 | |||
13 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
14 | DAEMON=sed_sbin_path/hiawatha | ||
15 | NAME=hiawatha | ||
16 | DESC="Hiawatha Web Server" | ||
17 | OPTS="" | ||
18 | |||
19 | case "$1" in | ||
20 | start) | ||
21 | echo -n "Starting $DESC: " | ||
22 | start-stop-daemon --start -x "$DAEMON" -- $OPTS | ||
23 | echo "$NAME." | ||
24 | ;; | ||
25 | stop) | ||
26 | echo -n "Stopping $DESC: " | ||
27 | start-stop-daemon --stop -x "$DAEMON" | ||
28 | echo "$NAME." | ||
29 | ;; | ||
30 | restart|force-reload) | ||
31 | echo -n "Restarting $DESC: " | ||
32 | start-stop-daemon --stop -x "$DAEMON" | ||
33 | sleep 1 | ||
34 | start-stop-daemon --start -x "$DAEMON" -- $OPTS | ||
35 | echo "$NAME." | ||
36 | ;; | ||
37 | *) | ||
38 | N=/etc/init.d/$NAME | ||
39 | echo "Usage: $N {start|stop|restart|force-reload}" >&2 | ||
40 | exit 1 | ||
41 | ;; | ||
42 | esac | ||
43 | |||
44 | exit 0 | ||
diff --git a/meta-webserver/recipes-httpd/hiawatha/files/hiawatha.service b/meta-webserver/recipes-httpd/hiawatha/files/hiawatha.service new file mode 100644 index 0000000000..26cb8d03d0 --- /dev/null +++ b/meta-webserver/recipes-httpd/hiawatha/files/hiawatha.service | |||
@@ -0,0 +1,16 @@ | |||
1 | [Unit] | ||
2 | Description=Hiawatha Web Server | ||
3 | After=network.target remote-fs.target nss-lookup.target | ||
4 | |||
5 | [Service] | ||
6 | Type=simple | ||
7 | SyslogIdentifier=hiawatha | ||
8 | ExecStartPre=/usr/sbin/hiawatha -k ; /usr/sbin/wigwam | ||
9 | ExecStart= /usr/sbin/hiawatha -d | ||
10 | TimeoutSec=10 | ||
11 | #(doesn't like this setting. Can't find files) PrivateTmp=true | ||
12 | LimitNOFILE=infinity | ||
13 | CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER CAP_FSETID CAP_SETGID CAP_SETUID | ||
14 | |||
15 | [Install] | ||
16 | WantedBy=multi-user.target | ||