aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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