Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmaports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmaports
Commits
8e10f36a
Verified
Commit
8e10f36a
authored
3 months ago
by
Clayton Craft
Browse files
Options
Downloads
Patches
Plain Diff
systemd/systemd-services: add syncthing unit file (MR 6043)
parent
8085ef2f
Branches
Branches containing commit
No related tags found
1 merge request
!6043
Add a few new systemd unit files
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
extra-repos/systemd/systemd-services/APKBUILD
+5
-0
5 additions, 0 deletions
extra-repos/systemd/systemd-services/APKBUILD
extra-repos/systemd/systemd-services/user-syncthing.service
+24
-0
24 additions, 0 deletions
extra-repos/systemd/systemd-services/user-syncthing.service
with
29 additions
and
0 deletions
extra-repos/systemd/systemd-services/APKBUILD
+
5
−
0
View file @
8e10f36a
...
...
@@ -53,6 +53,7 @@ subpackages="
rtkit-systemd:_service
sensorfw-systemd:_service
sleep-inhibitor-systemd:_service
syncthing-systemd:_service
tailscale-systemd:_service
tqftpserv-systemd:_service
udisks2-systemd:_service
...
...
@@ -126,6 +127,7 @@ _rmtfs_sources="system/rmtfs.service"
_rtkit_sources
=
"system/rtkit-daemon.service"
_sensorfw_sources
=
"system/sensorfwd.service"
_sleep_inhibitor_sources
=
"system/sleep-inhibitor.service"
_syncthing_sources
=
"user/syncthing.service"
# From https://github.com/syncthing/syncthing/blob/main/etc/linux-systemd/user/syncthing.service
_tailscale_sources
=
"system/tailscaled.service etc/default/tailscaled"
_tqftpserv_sources
=
"system/tqftpserv.service"
_udisks2_sources
=
"system/udisks2.service"
# From https://github.com/storaged-project/udisks/blob/master/data/udisks2.service.in
...
...
@@ -188,6 +190,7 @@ source="$(flatpath \
$_rtkit_sources
\
$_sensorfw_sources
\
$_sleep_inhibitor_sources
\
$_syncthing_sources
\
$_tailscale_sources
\
$_tqftpserv_sources
\
$_udisks2_sources
\
...
...
@@ -226,6 +229,7 @@ _rmtfs_system_presets="rmtfs.service"
_rtkit_system_presets
=
"rtkit-daemon.service"
_sensorfw_system_presets
=
"sensorfwd.service"
_sleep_inhibitor_system_presets
=
"sleep-inhibitor.service"
_syncthing_user_presets
=
"syncthing.service"
_tqftpserv_system_presets
=
"tqftpserv.service"
_udisks2_system_presets
=
"udisks2.service"
_udiskie_user_presets
=
"udiskie.service"
...
...
@@ -331,6 +335,7 @@ e12d8e98e28a795f879aebcceb32a991ee4abcb3bc5ec458aa5378bb52ff86cf39be04bc4a196925
1a0958e4fe232967946e9f2b17a13434b137236ba5d18442175d648b084d82df3a9fc5723c1621be899ee290b99777ac3c0ee6ad733e72d8e70f63b37ad00036 system-rtkit-daemon.service
d5bf5f01c0feafab4edfc39b75eded608dc3efcd3b918739e3ed2ab11340c9cc9b6fb97c0706ddd3d49b726c5f62e8cdb0048aefafd916f3ad9defc6ff9783bc system-sensorfwd.service
be9df5e3fd9c88ec1a8db4aa2d9e8075d74ee3d2670aa3cfc611df3cff4d4041ac888a0338c9d5f134bbc69aa32eb52ac40eb3e0981813afa18389cba14d3818 system-sleep-inhibitor.service
399cd971b02e4b8bdfe60808ab1beac111b8618358f89a4482cafde1d19fe0a943d2ef6c20f5ad853581a85ab2297065187ade83eac7a664bd47412d0df7b2b6 user-syncthing.service
41547eb369937348378e898e0dda7151552056107f4daab5a8a137a1b846560afa923cd345037b4f96bc9cdf2a7f66211a346b77229cc07ce2d0b634ff40dfe7 system-tailscaled.service
324935213f1600e345acdfa70eae29181e9ee02e3aca6a03776ea4856137f72b5791e23aea46210cc756065cadd88fd1b8eb4b26a608fec94f662d683fcb9320 etc-default-tailscaled
c569b27925297672c479e12a6425abdf5791886fff77c2c2b67b7aa9277eb0a22e7b95b52dbc225870c97460d0988a4dae18ed864e19096c704c0895de55b699 system-tqftpserv.service
...
...
This diff is collapsed.
Click to expand it.
extra-repos/systemd/systemd-services/user-syncthing.service
0 → 100644
+
24
−
0
View file @
8e10f36a
[Unit]
Description
=
Syncthing - Open Source Continuous File Synchronization
Documentation
=
man:syncthing(1)
StartLimitIntervalSec
=
60
StartLimitBurst
=
4
[Service]
ExecStart
=
/usr/bin/syncthing serve --no-browser --no-restart --logflags=0
Restart
=
on-failure
RestartSec
=
1
SuccessExitStatus
=
3 4
RestartForceExitStatus
=
3 4
# Hardening
SystemCallArchitectures
=
native
MemoryDenyWriteExecute
=
true
NoNewPrivileges
=
true
# Elevated permissions to sync ownership (disabled by default),
# see https://docs.syncthing.net/advanced/folder-sync-ownership
#AmbientCapabilities=CAP_CHOWN CAP_FOWNER
[Install]
WantedBy
=
default.target
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment