aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoni Sawicki <tenox@google.com>2022-03-26 23:43:25 -0700
committerAntoni Sawicki <tenox@google.com>2022-03-26 23:43:25 -0700
commit295c210eac103df1e4ace93928dfa566d52ce048 (patch)
tree008a1e77a76af0bc4e67a31de8f5555cd2d54cc1
parent4ae0253cee4f9664f9161e6d2679d0d245c6b72e (diff)
downloadwfm-295c210eac103df1e4ace93928dfa566d52ce048.tar.gz
add launchctl example
-rw-r--r--TODO.md2
-rw-r--r--service/launchctl/tc.tenox.wfm.plist29
2 files changed, 30 insertions, 1 deletions
diff --git a/TODO.md b/TODO.md
index d88cdbc..e2e2566 100644
--- a/TODO.md
+++ b/TODO.md
@@ -5,6 +5,7 @@
* FastCGI Interface
## Security
+* do not log FormValue["text"] as it contains text data from edit
* User manager add/delete/chpw user via arg
* userless/guest read-only mode, user rw
requires custom login window
@@ -27,7 +28,6 @@
* html as template
## File IO
-* do not log FormValue["text"] as it contains text data from edit
* udf iso format https://github.com/mogaika/udf
* zip/unzip archives
* iso files recursive list
diff --git a/service/launchctl/tc.tenox.wfm.plist b/service/launchctl/tc.tenox.wfm.plist
new file mode 100644
index 0000000..dd0d0a8
--- /dev/null
+++ b/service/launchctl/tc.tenox.wfm.plist
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Label</key>
+ <string>tc.tenox.wfm</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/usr/local/sbin/wfm</string>
+ <string>-addr=:80</string>
+ <string>-chroot=/datadir</string>
+ <string>-setuid=myuser</string>
+ </array>
+ <key>UserName</key>
+ <string>root</string>
+ <key>GroupName</key>
+ <string>wheel</string>
+ <key>KeepAlive</key>
+ <true/>
+ <key>WatchPaths</key>
+ <array>
+ <string>/usr/local/sbin/wfm</string>
+ </array>
+ <key>StandardOutPath</key>
+ <string>/var/log/wfm.log</string>
+ <key>StandardErrorPath</key>
+ <string>/var/log/wfm.log</string>
+</dict>
+</plist> \ No newline at end of file