Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mtproto_proxy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mtproto_proxy
Commits
68c4659f
Unverified
Commit
68c4659f
authored
Feb 16, 2019
by
Сергей Прохоров
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `epmd` systemd service on systems that don't have it. Fixes #5
parent
1726701e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
Makefile
Makefile
+6
-0
epmd.service
config/epmd.service
+14
-0
No files found.
Makefile
View file @
68c4659f
...
...
@@ -2,6 +2,7 @@ DESTDIR:=
prefix
:=
$(DESTDIR)
/opt
REBAR3
:=
./rebar3
SERVICE
:=
$(DESTDIR)
/etc/systemd/system/mtproto-proxy.service
EPMD_SERVICE
:=
$(DESTDIR)
/etc/systemd/system/epmd.service
LOGDIR
:=
$(DESTDIR)
/var/log/mtproto-proxy
USER
:=
mtproto-proxy
...
...
@@ -27,10 +28,15 @@ $(LOGDIR):
install
:
user $(LOGDIR)
mkdir
-p
$(prefix)
cp
-n
-r
_build/prod/rel/mtp_proxy
$(prefix)
/mtp_proxy/
mkdir
-p
$(prefix)
/mtp_proxy/log/
chmod
777
$(prefix)
/mtp_proxy/log/
install
-D
config/mtproto-proxy.service
$(SERVICE)
# If there is no "epmd" service, install one
if
[
-z
"`systemctl show -p FragmentPath --value epmd`"
];
then
\
install
-D
config/epmd.service
$(EPMD_SERVICE);
\
fi
systemctl
daemon-reload
uninstall
:
...
...
config/epmd.service
0 → 100644
View file @
68c4659f
[Unit]
Description=Erlang Port Mapper Daemon
After=network.target
#Requires=epmd.socket
[Service]
ExecStart=/usr/bin/epmd
Type=simple
User=daemon
Group=daemon
[Install]
#Also=epmd.socket
WantedBy=multi-user.target
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment