aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-04-29 23:30:24 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-04-29 23:30:24 +1200
commit1937618c94fbe445f1d75118816553bb52b176b1 (patch)
tree7573797d8993154306584a74850f9726dbd8a1f2
parentMerge branch 'hotfix/v0.03' (diff)
parentBump VERSION (diff)
downloadinotifymask-1937618c94fbe445f1d75118816553bb52b176b1.tar.gz
inotifymask-1937618c94fbe445f1d75118816553bb52b176b1.zip
Merge branch 'hotfix/v0.04'v0.04
* hotfix/v0.04: Actually add example systemd service
-rw-r--r--bin/inotifymask2
-rw-r--r--inotifymask.service9
2 files changed, 10 insertions, 1 deletions
diff --git a/bin/inotifymask b/bin/inotifymask
index 74e1a26..19e1b0a 100644
--- a/bin/inotifymask
+++ b/bin/inotifymask
@@ -9,7 +9,7 @@ use Const::Fast;
use File::stat;
use Linux::Inotify2;
-our $VERSION = '0.03';
+our $VERSION = '0.04';
const our $SELF => 'inotifymask';
diff --git a/inotifymask.service b/inotifymask.service
new file mode 100644
index 0000000..c15377a
--- /dev/null
+++ b/inotifymask.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=apply umask over created/moved files
+After=local-fs.target
+
+[Service]
+ExecStart=/usr/local/bin/inotifymask 0177 ~/private ~/private/also
+
+[Install]
+WantedBy=default.target