Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
radio_mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
azbyka
radio_mpd
Commits
e4d183a5
Commit
e4d183a5
authored
6 years ago
by
Andrey Shatokhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed radio.sh
parent
55216e57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
radio.sh
radio.sh
+1
-1
template.service
template.service
+2
-3
No files found.
radio.sh
View file @
e4d183a5
...
@@ -30,7 +30,7 @@ if [[ ! -f .'/'$1.mpd.conf ]];then
...
@@ -30,7 +30,7 @@ if [[ ! -f .'/'$1.mpd.conf ]];then
chmod
+x .
'/'
$1
/playlists
chmod
+x .
'/'
$1
/playlists
echo
"Файлы конфигураций cозданы успешно !"
echo
"Файлы конфигураций cозданы успешно !"
cp
template.service /etc/systemd/system
'/'
$1
.service
cp
template.service /etc/systemd/system
'/'
$1
.service
sed
-i
"s/#1/
$1
/g"
/etc/systemd/system
'/'
$1
.service
sed
-i
"s/#1/
`
pwd
`
/
$1
.mpd.conf
/g"
/etc/systemd/system
'/'
$1
.service
echo
PORT
=
$((
PORT+1
))
>
./.port
echo
PORT
=
$((
PORT+1
))
>
./.port
systemctl daemon-reload
systemctl daemon-reload
systemctl start
$1
.service
systemctl start
$1
.service
...
...
This diff is collapsed.
Click to expand it.
template.service
View file @
e4d183a5
...
@@ -6,7 +6,7 @@ ConditionFileIsExecutable=/usr/bin/mpd
...
@@ -6,7 +6,7 @@ ConditionFileIsExecutable=/usr/bin/mpd
Type=simple
Type=simple
StartLimitInterval=5
StartLimitInterval=5
StartLimitBurst=10
StartLimitBurst=10
ExecStart=/usr/bin/mpd --no-daemon
/home/icecastradio/#1.mpd.conf
ExecStart=/usr/bin/mpd --no-daemon
#1
User=icecastradio
User=icecastradio
Group=icecastradio
Group=icecastradio
...
@@ -14,4 +14,4 @@ Restart=always
...
@@ -14,4 +14,4 @@ Restart=always
RestartSec=20
RestartSec=20
[Install]
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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