mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
support server restart
This commit is contained in:
parent
cbc177b9d5
commit
83b6a30d96
2 changed files with 30 additions and 12 deletions
|
@ -259,9 +259,6 @@
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
<BundleResource Include="Resources\appicon.icns" />
|
<BundleResource Include="Resources\appicon.icns" />
|
||||||
<BundleResource Include="Resources\MediaBrowser.Server.Mac\Images.xcassets\AppIcon.appiconset\Contents.json" />
|
<BundleResource Include="Resources\MediaBrowser.Server.Mac\Images.xcassets\AppIcon.appiconset\Contents.json" />
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\.DS_Store">
|
|
||||||
<Link>Resources\dashboard-ui\.DS_Store</Link>
|
|
||||||
</BundleResource>
|
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\about.html">
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\about.html">
|
||||||
<Link>Resources\dashboard-ui\about.html</Link>
|
<Link>Resources\dashboard-ui\about.html</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
|
@ -301,9 +298,6 @@
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\connectlogin.html">
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\connectlogin.html">
|
||||||
<Link>Resources\dashboard-ui\connectlogin.html</Link>
|
<Link>Resources\dashboard-ui\connectlogin.html</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\cordovaindex.html">
|
|
||||||
<Link>Resources\dashboard-ui\cordovaindex.html</Link>
|
|
||||||
</BundleResource>
|
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\dashboard.html">
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\dashboard.html">
|
||||||
<Link>Resources\dashboard-ui\dashboard.html</Link>
|
<Link>Resources\dashboard-ui\dashboard.html</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
|
@ -658,9 +652,6 @@
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\wizarduser.html">
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\wizarduser.html">
|
||||||
<Link>Resources\dashboard-ui\wizarduser.html</Link>
|
<Link>Resources\dashboard-ui\wizarduser.html</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\css\.DS_Store">
|
|
||||||
<Link>Resources\dashboard-ui\css\.DS_Store</Link>
|
|
||||||
</BundleResource>
|
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\css\card.css">
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\css\card.css">
|
||||||
<Link>Resources\dashboard-ui\css\card.css</Link>
|
<Link>Resources\dashboard-ui\css\card.css</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
|
@ -1306,6 +1297,9 @@
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\livetvchannels.js">
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\livetvchannels.js">
|
||||||
<Link>Resources\dashboard-ui\scripts\livetvchannels.js</Link>
|
<Link>Resources\dashboard-ui\scripts\livetvchannels.js</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\livetvcomponents.js">
|
||||||
|
<Link>Resources\dashboard-ui\scripts\livetvcomponents.js</Link>
|
||||||
|
</BundleResource>
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\livetvguide.js">
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\livetvguide.js">
|
||||||
<Link>Resources\dashboard-ui\scripts\livetvguide.js</Link>
|
<Link>Resources\dashboard-ui\scripts\livetvguide.js</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
|
@ -1471,9 +1465,15 @@
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\pluginspage.js">
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\pluginspage.js">
|
||||||
<Link>Resources\dashboard-ui\scripts\pluginspage.js</Link>
|
<Link>Resources\dashboard-ui\scripts\pluginspage.js</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\queryfilters.js">
|
||||||
|
<Link>Resources\dashboard-ui\scripts\queryfilters.js</Link>
|
||||||
|
</BundleResource>
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\ratingdialog.js">
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\ratingdialog.js">
|
||||||
<Link>Resources\dashboard-ui\scripts\ratingdialog.js</Link>
|
<Link>Resources\dashboard-ui\scripts\ratingdialog.js</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\registrationservices.js">
|
||||||
|
<Link>Resources\dashboard-ui\scripts\registrationservices.js</Link>
|
||||||
|
</BundleResource>
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\remotecontrol.js">
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\scripts\remotecontrol.js">
|
||||||
<Link>Resources\dashboard-ui\scripts\remotecontrol.js</Link>
|
<Link>Resources\dashboard-ui\scripts\remotecontrol.js</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
|
@ -1666,6 +1666,21 @@
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\thirdparty\apiclient\alt\events.js">
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\thirdparty\apiclient\alt\events.js">
|
||||||
<Link>Resources\dashboard-ui\thirdparty\apiclient\alt\events.js</Link>
|
<Link>Resources\dashboard-ui\thirdparty\apiclient\alt\events.js</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\thirdparty\cordova\chromecast.js">
|
||||||
|
<Link>Resources\dashboard-ui\thirdparty\cordova\chromecast.js</Link>
|
||||||
|
</BundleResource>
|
||||||
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\thirdparty\cordova\connectsdk.js">
|
||||||
|
<Link>Resources\dashboard-ui\thirdparty\cordova\connectsdk.js</Link>
|
||||||
|
</BundleResource>
|
||||||
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\thirdparty\cordova\generaldevice.js">
|
||||||
|
<Link>Resources\dashboard-ui\thirdparty\cordova\generaldevice.js</Link>
|
||||||
|
</BundleResource>
|
||||||
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\thirdparty\cordova\imagestore.js">
|
||||||
|
<Link>Resources\dashboard-ui\thirdparty\cordova\imagestore.js</Link>
|
||||||
|
</BundleResource>
|
||||||
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\thirdparty\cordova\registrationservices.js">
|
||||||
|
<Link>Resources\dashboard-ui\thirdparty\cordova\registrationservices.js</Link>
|
||||||
|
</BundleResource>
|
||||||
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\thirdparty\cordova\remotecontrols.js">
|
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\thirdparty\cordova\remotecontrols.js">
|
||||||
<Link>Resources\dashboard-ui\thirdparty\cordova\remotecontrols.js</Link>
|
<Link>Resources\dashboard-ui\thirdparty\cordova\remotecontrols.js</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
|
|
|
@ -153,14 +153,17 @@ namespace MediaBrowser.Server.Mac
|
||||||
|
|
||||||
_logger.Info("Starting new instance");
|
_logger.Info("Starting new instance");
|
||||||
|
|
||||||
var currentProcess = Process.GetCurrentProcess();
|
|
||||||
|
|
||||||
var args = Environment.GetCommandLineArgs()
|
var args = Environment.GetCommandLineArgs()
|
||||||
|
.Skip(1)
|
||||||
.Select(NormalizeCommandLineArgument);
|
.Select(NormalizeCommandLineArgument);
|
||||||
|
|
||||||
var commandLineArgsString = string.Join(" ", args.ToArray());
|
var commandLineArgsString = string.Join(" ", args.ToArray());
|
||||||
|
var module = Environment.GetCommandLineArgs().First();
|
||||||
|
|
||||||
Process.Start(currentProcess.MainModule.FileName, commandLineArgsString);
|
_logger.Info ("Executable: {0}", module);
|
||||||
|
_logger.Info ("Arguments: {0}", commandLineArgsString);
|
||||||
|
|
||||||
|
Process.Start(module, commandLineArgsString);
|
||||||
|
|
||||||
_logger.Info("AppController.Terminate");
|
_logger.Info("AppController.Terminate");
|
||||||
MenuBarIcon.Instance.Terminate();
|
MenuBarIcon.Instance.Terminate();
|
||||||
|
|
Loading…
Reference in a new issue