* mark python sqlite DEP opt and update .cache
[t2sde.git] / package / network / nginx / nginx.init
blobcffbec37a6feaa8d90774a209a7b83eaa87868c9
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/nginx/nginx.init
3 # Copyright (C) 2023 - 2024 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 # Desc: nginx http and reverse proxy server
13 # Runlevel: 55 rcX
16 main_begin
17         block_begin(start, `Starting nginx daemon')
18                 mkdir -p /var/lib/nginx/tmp
19                 mkdir -p /var/run/nginx
20                 check(`D_sbindir/nginx')
21         block_end
23         block_begin(stop, `Stopping nginx')
24                 check(`D_sbindir/nginx -s stop &>/dev/null')
25         block_end
27         block_begin(restart, `Restarting nginx')
28                 check(`D_sbindir/nginx -s reload &>/dev/null')
29         block_end
30 main_end